Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Dali » Status of how users with multiple projects should use dali/persistence.xml and <jar-file >
Status of how users with multiple projects should use dali/persistence.xml and <jar-file > [message #897882] Wed, 25 July 2012 07:12 Go to next message
Max Rydahl Andersen is currently offline Max Rydahl Andersen
Messages: 223
Registered: July 2009
Senior Member
I'm wondering what the status is for Dali having support for referencing multiple projects with entities to be used in a persistence unit - JPA it self uses jar-file references for this but that doesn't really map well at design time.

Any tips/docs on this subject ?
Re: Status of how users with multiple projects should use dali/persistence.xml and <jar-file > [message #898827 is a reply to message #897882] Fri, 27 July 2012 15:40 Go to previous messageGo to next message
Neil Hauge is currently offline Neil Hauge
Messages: 467
Registered: July 2009
Senior Member
There is no real change in the status in the Juno release, but we have been discussing this use case lately. It seems we need to provide some sort of (design time) project to jar-ref mapping capability where the user can explicitly resolve a jar-ref to a development project. The tricky part would then be providing the Dali editing/validation experience to these dependent JPA projects.

I was thinking we could have a way for the user to create a dependent project and then to identify the owning Dali project, from which the dependent project would inherit the persistence unit from the owner. It would take some work to have a different facet configuration, etc, but it seems feasible. Would also require some tweaks to the validation, but all seems possible.

Let me know if you have any feedback on this. Would be nice to add in this functionality in the near future.

Here is a related enhancement request - https://bugs.eclipse.org/bugs/show_bug.cgi?id=254480.

Neil

[Updated on: Tue, 07 August 2012 10:49]

Report message to a moderator

Re: Status of how users with multiple projects should use dali/persistence.xml and <jar-file > [message #900507 is a reply to message #898827] Tue, 07 August 2012 06:28 Go to previous message
Boris Naguet is currently offline Boris Naguet
Messages: 1
Registered: December 2011
Junior Member
Hi all,

In fact, I thought that using a custom ResourceLocator would be the solution, but I faced another issue while pointing to a file in another project:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=381890

Boris
PS: Neil, your link has an extra point at the end
Previous Topic:JPQL validation error: AS in SELECT (with constructor expession)
Next Topic:JPQL validation errors in named-queries.xml not ignored
Goto Forum:
  


Current Time: Thu Apr 17 23:48:16 EDT 2014

Powered by FUDForum. Page generated in 0.10862 seconds