Hibernate / Hibernate interview questions II
Explain Hibernate named query.
Hibernate named queries lets developer to put all HQL into the XML mapping file or via annotation so that it is easy to maintain and separated from Java code.
The named query is supported in both HQL or native SQL.
The queries can be retrieved using the query names as shown below.
Query query = session.getNamedQuery("HQL_GET_ALL_EMPLOYEE");
More Related questions...