0 Replies Latest reply on Jul 6, 2006 3:51 PM by Arnie Morein

    linking hbm entities to specific session factories in the hi

    Arnie Morein Novice

      I am using Hibernate 3.x.

      I am working on an application that uses data from three different databases (in dev, also on the same server, but prod could be different servers). Anyway, so far so good - I have created Hbm SF's linked to the different JBoss connection pools. But I do not grasp just how Hibernate knows (if it does at all) that entity class X is to be found on connection Y.

      Since the configuration xml file doesn't list the entities related to the connection, are they automatically related to all Hbm connections?

      Is there no way to relate the objects explicitly?