can i map a single table to two
java beans(same setters and getters).
when i am trying to access it shows some mapping error.the code is
<class name="abc.login.User" table="myuser1">
<id name="user_id" column="user_id">
<generator class="assigned"/>
</id>
<property name="account_id" column="account_id"/>
<property name="uname" column="uname"/>
<property name="pwd" column="pwd"/>
</class>
<class name="xyz.login.User" table="myuser1">
<id name="user_id" column="user_id">
<generator class="assigned"/>
</id>
<property name="account_id" column="account_id"/>
<property name="uname" column="uname"/>
<property name="pwd" column="pwd"/>
</class>
here the tables is one. beans are of type user with the same setters and getters stored in different packages