facebook

Can I have multiple persistence-units?

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #277446 Reply

    Crasht51
    Member

    I would like to use JPA to access oracle db tables in 2 different schemas. I have not been able to get this to work with MyEclipse. In my persistence.xml I have defined 2 <persistence-unt>’s, but the file com.genuitec.eclipse.persistence.jpa.prefs seems to support just one connection. Can this be done in MyEclipse?

    Thanks – Jon P.

    #277508 Reply

    Riyad Kalla
    Member

    Jon,
    You can go to the DB Explorer and rev-eng the entities from the two schemas separately, but the project validation is only run against the single PU you have associated with the project.

    #277682 Reply

    Crasht51
    Member

    This message has not been recovered.

    #277684 Reply

    Riyad Kalla
    Member

    This message has not been recovered.

    #294830 Reply

    Definitely put my vote on that enhancement too. Our ERP application uses about 16 different schemas and relates tables between them. It’s a necessity in my environment to perform joins across schemas daily.

    #294890 Reply

    Riyad Kalla
    Member

    DSpair, it’s still on our list of enhancements, but it’s a pretty far-reaching one (touches bits of the validation parsers, content assist parsers, re-eng tools for Hib and JPA, etc. etc.) so a fairly expensive feature to build.

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: Can I have multiple persistence-units?

You must be logged in to post in the forum log in