0 Replies Latest reply on Apr 20, 2008 2:52 PM by Sergey Akbarov

    EJB 3.0 and two databases

    Sergey Akbarov Newbie

      Dear All,

      I've two Enities: A (database #1, table A) and B (database #2, table B).

      @Table(name = "A")
      public class A{
       @JoinColumn(name = "b_id")
       private B b;

      and 2 units in persistence.xml: aCtx and bCtx

      When I execute "select o from A o" I receive following error: Table B cannot be found. How can I set up persistence unit per entity?