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

Suitable for new contributors

Yes, likely

Components

Fix versions

Priority

Major