Tuesday, November 29, 2011

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. This forces hibernate to bypass the setter method and access the instance variable directly while initializing a newly loaded object.
Category:Hibernate Interview Questions

No comments:

Post a Comment