Hi,
I have a Derby db embedded in Eclipse. I also have a hibernate configuration that connects to this DB successfully. When I generate the entities based on this schema, I get entities without the @joinColumn and oneToMany associations. I have checked the "detect associations" and "detect many-to-many tables".
Is this a known bug/feature?
What can I do to get this working?
Thanks!
Coenos
I use the following schema with foreign key relations.
Code:
CREATE TABLE CUSTOMERTYPE
(
ID integer NOT NULL PRIMARY KEY generated always as identity,
NAME varchar(50) NOT NULL,
DESCRIPTION varchar(50) NOT NULL,
VERSION integer NOT NULL
);
CREATE TABLE CUSTOMER
(
ID integer NOT NULL PRIMARY KEY generated always as identity,
NAME varchar(50) NOT NULL,
ADDRESS varchar(50) NOT NULL,
ZIP varchar(10) NOT NULL,
CITY varchar(50) NOT NULL,
COUNTRY varchar(50) NOT NULL,
EMAIL varchar(50),
PHONE varchar(50) NOT NULL,
CONTACT varchar(50) NOT NULL,
CUSTOMERTYPE_ID integer NOT NULL,
VERSION integer NOT NULL,
CONSTRAINT CUS_CTP_FK1 FOREIGN KEY (CUSTOMERTYPE_ID) REFERENCES CUSTOMERTYPE(ID)
);