Skip to main content



      Home
Home » Language IDEs » ServerTools (WTP) » Doubt about the right project to place the JPA facet and persistence.xml file
Doubt about the right project to place the JPA facet and persistence.xml file [message #223090] Fri, 24 October 2008 13:44 Go to next message
Eclipse UserFriend
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
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 Go to previous message
Eclipse UserFriend
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
>
Previous Topic:Dynamic ENTITY resolution
Next Topic:how to change the filesystem location of a wtp server?
Goto Forum:
  


Current Time: Thu Jul 03 03:20:20 EDT 2025

Powered by FUDForum. Page generated in 0.07309 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top