• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Hibernate's polymorphic collections - Which approach is faster?

 
Ranch Hand
Posts: 1855
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,

Hibernate offers two ways to handle polymorphy.

One is to avoid a database hit and to use lazy loading and proxies with the session's load() method. The other to use interception and lazy="no-proxy" on the many-to-one side. For more, see the book Java Persistence with Hibernate on p.315 and p.571

Is there any statement that one approach is faster than the other

Any experiences here?

Regards,
Darya
reply
    Bookmark Topic Watch Topic
  • New Topic