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?

Environment

4.3.5, any

Activity

Show:
Brett Meyer
April 22, 2015, 9:14 PM

Closing rejected issues.

Assignee

Gail Badner

Reporter

Thomas Wolf

Fix versions

None

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Major
Configure