We're updating the issue view to help you get more done. 

Exception when Id generation is used with Table per concrete class strategy

Description

If the following mapping is used:

1 2 3 4 5 6 7 8 9 10 11 12 13 @Entity @Inheritance(strategy = InheritanceType.TABLE_PER_CLASS) public abstract class BaseEntity { protected UUID id; @Id @GeneratedValue(generator = "uuid") @GenericGenerator(name = "uuid", strategy = "uuid2") public UUID getId() { return id; } ... }

The user sees the following exception:

1 Caused by: org.hibernate.MappingException: No Dialect mapping for JDBC type: -2

It seems the error is caused by the fact that Hibernate ORM creates an additional table for this mapping containing the ids generated. We should try to solve the issue or improve the error message and update the documentation.

Environment

None

Status

Assignee

Pavel Novikov

Reporter

Davide D'Alto

Labels

None

Worked in

None

Feedback Requested

None

Feedback Requested By

None

backPortable

None

Community Help Wanted

None

Suitable for new contributors

Yes, likely

Requires Release Note

None

backportDecision

None

backportReEvaluate

None

Components

Fix versions

Priority

Major