wood burning stoves 2.0*
The moose likes Object Relational Mapping and the fly likes How can I get hbm2hbmxml to set lazy= Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "How can I get hbm2hbmxml to set lazy="true"?" Watch "How can I get hbm2hbmxml to set lazy="true"?" New topic
Author

How can I get hbm2hbmxml to set lazy="true"?

Philippe Desrosiers
Ranch Hand

Joined: Mar 29, 2006
Posts: 138
Somewhere, somehow, there is an option called "default-lazy". I know this because I've seen it mentioned in the Hibernate code generation templates (specifically hibernate-mapping.hbm.ftl). How can I specify this option when running the hbm2hbmxml ANT task?

ALSO: If I specify lazy = true for ALL my entity classes, is there some way to prevent hibernate from entering an infinite loop when it encounters a linking table? I'm configuring hibernate using Spring HibernateDaoSupport, etc. Is this what the hibernate.max_fetch_depth option is for?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How can I get hbm2hbmxml to set lazy="true"?
 
Similar Threads
While and Do-While Question
Suppressing association retrievals
annotation for lazy loading
Differecne between proxy and lazy attributes in <class> for hibernate hbm file
how to lazy load @onetoOne