Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Kotlin for Android App Development this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Devaka Cooray
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Junilu Lacar
  • Paul Clapham
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • salvin francis
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

Define external lib classes as entities in a different module/project  RSS feed

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

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?


Many thanks in advance
G.
 
Without deviation from the norm, progress is not possible - Zappa. Tiny ad:
java tutor first lesson for free
https://coderanch.com/t/702613/java-tutor-lesson-free
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!