@Entity
@Table(name = TaxiBusiness.tableName)
public class TaxiBusiness {
public static final String tableName = "gps_accept_order_" + 20170306;
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
@Column(name = "ID")
private int ID;
...
}
I want to reuse the same entity to go through all the schemas and tables. One schema per month and one table per day. How to do it?