This week's book giveaway is in the Agile and Other Processes forum. We're giving away four copies of The Little Book of Impediments (e-book only) and have Tom Perry on-line! See this thread for details.
Define external lib classes as entities in a different module/project
posted 5 years ago
I hope this was not asked & answered before.
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?