Hi,
When switiching to annotations it seems that there is a disctinction between using fetch=FetchType.EAGER vs LazyCollection(LazyCollectionOption.FALSE) - at least in one-to-many associations using a JoinColumn. Using LazyCollectionOption.FALSE results in usual performance/behavior similar to when using lazy="true" with xdoclet. Using FetchType.EAGER however results in larger SQL queries and slowdown. As far as hibernate is concerned, what exactly is the difference between using the EJB3 OneToMany property fetch=FetchType.EAGER and using the hibernate annotation LazyCollection(LazyCollectionOption.FALSE) on a OneToMany association (using a JoinColumn)? TIA!
|