Hibernate version: latest
Hello,
Is it possible to override a primary key column name in table per concrete class strategy?
For example:
Having db like:
create table TABLE_A (
table_a_id integer primary key,
description text
)
create table TABLE_B (
table_b_id integer primary key,
description text
)
And in mapping like this:
@Entity
@Inheritance(strategy = InheritanceType.TABLE_PER_CLASS)
public abstract class Table {
private String description;
...
}
@Entity
public class Table_A extends Table{
}
@Entity
public class Table_B extends Table {
}
Where and how to put primary key mapping?
Regards,
Piotr Foremniak
|