0 Replies Latest reply on Oct 30, 2014 5:52 AM by rameshchokkapu

    hbm file configuration only tablename, not databasename.tablename



      Good Afternoon,


      We have two databases



          |---------> TableName1






      In existing system we have configured in HBM as below.

      <class name="packagename.ClassName" table="databasename1.TableName1">

      Now I want configuration in HBM with below.

      <class name="packagename.ClassName" table="TableName1">

      1. How it is possible with out specifying database name in hbm file?

      2. After some days i may change TableName2 into databasename1  And TableName1 into databasename2, with out modifying the code, how it is possible?