Thursday, 19 January 2017

What are the ways to express joins in HQL?

What are the ways to express joins in HQL?
HQL provides four ways of expressing (inner and outer) joins:-
·         An implicit association join
·         An ordinary join in the FROM clause
·         A fetch join in the FROM clause.
·         theta-style join in the WHERE clause.
How can Hibernate be configured to access an instance variable directly and not through a setter method?  By mapping the property with access="field" in Hibernate metadata.
How can a whole class be mapped as immutable?
Mark the class as mutable="false" (Default is true). This specifies that instances of the class are not mutable. Immutable classes, may not be updated or deleted by the application.

No comments:

Post a Comment