I have created domain objects using annotations and now I need some sql queries to be written to fetch/insert/update data from/to more than one table.
Is there a way to keep only the sql queries in the hbm.xml file as named query because the domain objects are already created using annotations and I do not need to do it in xml way. If this is possible then what are the steps need to be followed, please advice.
Thanks in advance.