|
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 04:54  |
Eclipse User |
|
|
|
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
project.
This way you have the flexibility to include the project/jar in either EJB
project or EJB Client project and wherever you need it.
Greetings,
Kaloyan
"Marcos " <marcos_antonio_ps@hotmail.com> wrote in message
news:4400af8be92ff2322ed685e8bfe652d5$1@www.eclipse.org...
> 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.
>
> Marcos
>
|
|
|
Powered by
FUDForum. Page generated in 0.07309 seconds