|Re: Doubt about the right project to place the JPA facet and persistence.xml file [message #223155 is a reply to message #223090]
||Mon, 27 October 2008 08:54
| Kaloyan Raev
Registered: July 2009
Location: Sofia, Bulgaria
If the business method of your EJB beans use JPA entites for parameters and |
return values then you would need entities classes in the EJB Client
project. Otherwise, the clients of your EJBs will not resolve the entities
classes. From this point of view having the JPA facet on the EJB Client
project is better.
The best practice in my opinion is to put your JPA entites in a separate JPA
This way you have the flexibility to include the project/jar in either EJB
project or EJB Client project and wherever you need it.
"Marcos " <firstname.lastname@example.org> wrote in message
> Hello, everybody!
> Simple question: what is the right project to place the JPA facet and the
> persistence.xml file: the EJB project or the EJB Client project?
> Thank you.
Powered by FUDForum
. Page generated in 0.01857 seconds