Below is my entity class,here i want to access the table name dynamically at run time. Is it possible to access different table with same entity?
I have used following link to solve the problem but no use. Hibernate: Data Object with a dynamic table name by Annotations
Please guide me to solve this problem?
@Entity
@Table(name="tableName")
public class TestClass{
@Column(name="idPerson", nullable=false, unique=true)
@Id
...