I am trying to set column name dynamically in a class(given below) but in @Column it need constant value as name.
public class Common
{
final String pre_col_name_created;
public Common( String pre_col_name )
{
this.pre_col_name_created = pre_col_name;
}
@Column( name = pre_col_name_created + "" )
private String created;
}
Please suggest me to give pre_col_name_created value dynamically from other class in @Column.
I already refer below links:1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23
my goal is: I am creating 10 tables and all tables contain created column but prefix with different value that set as per Data model class.
for ex.:
tables abc and qwe
table abc has id,a_column(varchar) and
table qwe has id, q_column(varchar)
Using @Transient I got error:


