Sounds like a bug to me. Craig
On Jul 6, 2007, at 10:28 AM, Kevin Sutter wrote:
I am finding that the supposed default action of Eager fetching is nothappening with @Enumerated and @Lob fields. If I explicitly specify the @Basic annotation, then the fields are eagerly fetched. But, without this extraneous @Basic, these fields are lazily loaded. This action does not seem to be consistent with the spec. Nor, can I find any mention of this alternate behavior in our OpenJPA manual. Sounds like a bug to me. Anyother insights? This works (eager loading kicks in): @Basic @Enumerated(EnumType.STRING) private Gender gender; This does not work (lazy loading kicks in): @Enumerated(EnumType.STRING) private Gender gender; I have also tried to use defaults (without any annotations), and lazy loading still kicks in: private Gender gender; Thanks, Kevin
Craig Russell Architect, Sun Java Enterprise System http://java.sun.com/products/jdo 408 276-5638 mailto:[EMAIL PROTECTED] P.S. A good JDO? O, Gasp!
smime.p7s
Description: S/MIME cryptographic signature
