In my hibernate configuration file i used to specify the properties including the database name
<property name="hibernate.dialect">org.hibernate.dialect.MySQLDialect</property>
<property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property>
<property name="hibernate.connection.url">jdbc:mysql://localhost:3306/test</property>
in one of the hbm files
<class name="com.test.entity.User" table="user" catalog="employee">
Why the catalog in hbm files overrides the connection to the database specified in the hibernate configuration file hibernate ?
Does it connect to both databases?