If the following mapping is used:
{code} @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; } ... } {code}
The user sees the following exception:
{code ] } Caused by: org.hibernate.MappingException: No Dialect mapping for JDBC type: -2 {code ] }
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. |
|