Re: Inner Class Entities

2009-12-13 Thread Craig L Russell
Hi Tim, Just following up. I never understood why *static* inner classes could not be Entities. I'm just guessing that some vendors didn't like them for some reason. But non-static inner classes would be more like dependent classes whose existence depended upon the existence of the owning

Inner Class Entities

2009-11-12 Thread Tim McConnell
Hi, I'm wondering if there is any documentation, specifications, and/or known rules that govern the usage of Inner Classes as Entities ?? I haven't been able to find any although I do see a couple of examples of the @Entity being used on inner classes in some of the OpenJPA testcases.

Re: Inner Class Entities

2009-11-12 Thread Kevin Sutter
Good question, Tim. The JPA spec indicates that an Entity needs to be a top-level class (section 2.1 of JPA 2.0 spec). But, I noticed in our OpenJPA documentation that we have overridden the ability to define an Entity as final class with final methods. Section 1 [1] of the documentation