0 Replies Latest reply on Oct 27, 2008 12:27 PM by Nicola Spazzoli

    Many sessionFactory order

    Nicola Spazzoli Newbie

      Good morning all.

      I have 2 db and the following in my components.xml:
      <persistence:hibernate-session-factory name="hibernateSessionFactory1" cfg-resource-name="..."/>

      <persistence:hibernate-session-factory name="hibernateSessionFactory2" cfg-resource-name="..."/>

      Some Entities are mapped in hibernateSessionFactory1 and hibernateSessionFactory2. I want to assign a priority, an order, and then search the first sessionFactory and execute a query.

      Thanks in advance,