• Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
Philippe Desrosiers
Ranch Hand
Posts: 138
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!