I am using NetBeans 6.9, Hibernate and glassfish 3.1, jdk 6
I have an ejb module/lib with few @entity POJO classes (with entity dependencies and inheritance) that I would like to export to external plain java library.
The architecture drive is to reuse the classes in other areas of the project as transport objects and eliminate the need to include annotation in the lib. For instance, I would like to create a generic API (interfaces) and some generic functionality (abstract) in a core lib which then get final j2ee touch once included in an ejb module where the j2ee resources are injected and the functionality becomes server managed.
How do I make a plain class from a lib become an entity class in another ejb module?