• 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

JPA lazy load

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

Do anyone used JPA showing Lazyload in the sequence diagram. i.e. propagating the POJO from managed bean to session bean to just call the method which returns the collection of objects which was not loaded initially.

Many thanks

Usman.
 
Ranch Hand
Posts: 218
Hibernate Spring Java
  • Likes 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I don't think this level of detail is required in sequence diagram. You can mention this is decisions section for improving performance.

The DAO/service layer will need to know what data is required by the web layer & will need to prefetch the data as Entity Manager will be closed/not availaible in web layer. Hibernate provides OpenSessionInViewInterceptor, which basically keeps the hibernate session open. Am not sure if something similar is availaible in JPA.
 
reply
    Bookmark Topic Watch Topic
  • New Topic