[jboss-user] [EJB 3.0] - Re: Reference-Problems within an ear

jwenting do-not-reply at jboss.com
Mon Apr 14 07:36:30 EDT 2008


the persistence context exists within the context of its entities. 
Without those entities it has no real meaning.
That means those entities need to be packed with the persistence context.

You might be best off restructuring your project to have a single persistence module containing all your entities and the persistence context, and referencing to that from your other modules.
That also prevents a lot of class duplication among the other modules, which can become a major headache when table definitions or other entity-related stuff changes.
As it now stands in your application you'd need to change each module separately, rather than change just one.
I can guarantee that sooner rather than later that'll come back to bite you.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4143848#4143848

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4143848



More information about the jboss-user mailing list