|
Re: Shared persistence.xml [message #435002 is a reply to message #435001] |
Thu, 06 November 2008 18:06 |
Neil Hauge Messages: 475 Registered: July 2009 |
Senior Member |
|
|
Hi Felipe,
Unfortunately, the Dali tools do not yet support the use case you describe
below for developing and packaging entities. Currently we require a
persistence.xml to be present in each JPA project, since we do not yet
support inter-project persistence units. If you were to set this up
currently, all of these required persistence.xml's would be packaged in
the entity JARs contained in the EAR, which would likely cause problems at
run-time.
In order to work with the current limitations, you would need to define
all of your entities in a single project, which could then be JAR'd and
packaged in an EAR.
I've entered bug 254480
(https://bugs.eclipse.org/bugs/show_bug.cgi?id=254480) to make sure this
use case is captured.
Neil
Felipe Kamakura wrote:
> Hello,
> I recently began adding WTP to some project here in my company and most of
> them have shared persistence.xml.
> In other words, inside a EAR packaging, I'm able to have multiple JARs
> with Entities, all of them sharing a single persistence.xml located inside
> a separate JAR file.
> How can I achieve this using WTP?
> Thanks a lot!
|
|
|
|
Re: Shared persistence.xml [message #611848 is a reply to message #435001] |
Thu, 06 November 2008 18:06 |
Neil Hauge Messages: 475 Registered: July 2009 |
Senior Member |
|
|
Hi Felipe,
Unfortunately, the Dali tools do not yet support the use case you describe
below for developing and packaging entities. Currently we require a
persistence.xml to be present in each JPA project, since we do not yet
support inter-project persistence units. If you were to set this up
currently, all of these required persistence.xml's would be packaged in
the entity JARs contained in the EAR, which would likely cause problems at
run-time.
In order to work with the current limitations, you would need to define
all of your entities in a single project, which could then be JAR'd and
packaged in an EAR.
I've entered bug 254480
(https://bugs.eclipse.org/bugs/show_bug.cgi?id=254480) to make sure this
use case is captured.
Neil
Felipe Kamakura wrote:
> Hello,
> I recently began adding WTP to some project here in my company and most of
> them have shared persistence.xml.
> In other words, inside a EAR packaging, I'm able to have multiple JARs
> with Entities, all of them sharing a single persistence.xml located inside
> a separate JAR file.
> How can I achieve this using WTP?
> Thanks a lot!
|
|
|
|
Powered by
FUDForum. Page generated in 0.03431 seconds