I hava a pojo class in which I am using Hibernate annotation.
In my database I have two tables with similiar schema.
I want to know whether there is any way in hibernate annotation so that same pojo class can be used for these two tables.
Please suggest me how to do it.
In my database I have two tables with similiar schema.
I want to know whether there is any way in hibernate annotation so that same pojo class can be used for these two tables.
Please suggest me how to do it.