Lazy Loading Entities In Views Challenge--Reader's Question And Answer : Adam Bien's We... - 0 views
www.adam-bien.com/...lazy_loading_entities_in_views
java javaee6 anti-patterns DesignPatterns lazy-loading EagerFetch JPA

-
Lazy Loading Entities In Views
- ...10 more annotations...
-
Anti-Pattern
-
Use Stateful Session Beans
-
eager load the relations
-
just don't hard-code this eager loading behavior by using jpa's FetchType.EAGER when annotating the entity beans if you do, you force all clients of said entity beans to *always* eager fetch everything, even if the client doesn't want/need the full depth/breadth of the object graph to eager load the relations when needed, try fetch joins (see item 5)
-