Description:
|
Test case: o.h.test.discriminator.DiscriminatorTest#testDiscriminatorSubclass
Person.hbm.xml defines 2 many-to-one relationships. In 4.1.x, the table looked like this:
create table Person (
person_id bigint generated by default as identity (start with 1),
name varchar(80) not null,
sex char(255) not null,
address varchar(255),
zip varchar(255),
country varchar(255),
title varchar(20),
salary numeric,
manager bigint,
comments varchar(255),
salesperson bigint,
primary key (person_id)
)
In metamodel, 'manager' is 'manager_person_id' and 'salesperson' is 'salesperson_person_id'. The many-to-one names are being ignored.
|