In @Table(name = "tableName") - make "tableName" a variable in JPA
- by zengr
I am using JPA and I need to make the "tableName" a variable.
In a database, I have many tables, and my code needs to access the table where I specify it to read.
@Entity
@Table(name = "tableName")
public class Database implements Serializable {...............}
Any ideas?