Enterprise Java Development@TOPIC@
Figure 67.2. Generated Database Schema
create table ORMINH_SHAPE (
id bigint generated by default as identity,
version bigint not null,
posx integer not null,
posy integer not null,
primary key (id)
)
create table ORMINH_CIRCLE (
radius integer not null,
id bigint not null,
primary key (id)
)
create table ORMINH_RECTANGLE (
height integer not null,
width integer not null,
id bigint not null,
primary key (id)
)
alter table ORMINH_CIRCLE
add constraint FKFF2F1F1632C97600
foreign key (id)
references ORMINH_SHAPE
alter table ORMINH_RECTANGLE
add constraint FK1FFF614932C97600
foreign key (id)
references ORMINH_SHAPEcreate table ORMINH_CUBE (
depth integer not null,
id bigint not null,
primary key (id)
)
alter table ORMINH_CUBE
add constraint FK84203FB112391CE
foreign key (id)
references ORMINH_RECTANGLEProvider used parent's JOIN strategy over child's TABLE_PER_CLASS specification