composite primary key containing foreign key, @EmbeddedId, @MapsId, @JoinColumn, and foreign key length

Description

With the two classes

and

the SchemaExport generates the following DDL:

Why is that foreign key FK_A varchar(255)? I would have expected varchar(8). If I remove the @JoinColumn, I do get varchar(8), but I can no longer give it a name.

How do I get both: varchar(8) and the column being named "FK_A"? Am I doing something wrong here, or is there indeed a problem?

Activity

Show:

Brett Meyer April 22, 2015 at 9:14 PM

Closing rejected issues.

Duplicate

Details

Assignee

Reporter

Components

Affects versions

Priority

Created September 12, 2014 at 1:40 PM
Updated April 22, 2015 at 9:14 PM
Resolved September 13, 2014 at 12:18 AM