Table name generated for @ElementCollection uses owning entity class name instead of mapped entity name (master)

Description

If no collection table is specifically mapped and an entity name is specified (via @Entity(name="...") , the table name generated for @ElementCollection starts with its (unqualified) owning entity class name. It should start with the mapped entity name instead.

For example:

Currently, the collection table is named "Matrix_mvalues"; it should be "Mtx_mvalues".

This was fixed in 4.3 and 4.2 by HHH-9280.

Environment

None

Activity

Show:
Gail Badner
July 9, 2014, 10:41 PM

org.hibernate.test.annotations.collectionelement.CollectionElementTest.testDefaultTableNameUsesJpaEntityName() reproduces this issue and is marked @FailureExpectedWithNewMetamodel.

Assignee

Unassigned

Reporter

Gail Badner

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Priority

Major
Configure