Alexander Savov (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *commented* on HHH-16122 (
https://hibernate.atlassian.net/browse/HHH-16122?atlOrigin=eyJpIjoiNDhlND...
)
Re: Named type [class xxx] did not implement BasicType nor UserType (
https://hibernate.atlassian.net/browse/HHH-16122?atlOrigin=eyJpIjoiNDhlND...
)
Markus, thank you so much for the investigation. Really hope that someone from Hibernate
team will confirm and share what’s the plan for the fix.
I came up with some sort of partial fix moving all the props from the Generic class to
“artificially“ introduced parent class that is NOT generic. However for the Generic
property that’s not an option.
@MappedSuperclass
public static class TaskServiceDocumentFix extends MultiTenantDocument {
// Now this prop is part of the parent non-generic class and is OK
@Type(JsonBinaryType.class)
@Column(columnDefinition = "jsonb")
public ServiceTaskCallback serviceTaskCallback;
}
@MappedSuperclass
public static class TaskServiceDocument<E extends Enum<E>> extends
TaskServiceDocumentFix {
// However this does not work
@Enumerated(EnumType.STRING)
public E taskSubStage;
}
(
https://hibernate.atlassian.net/browse/HHH-16122#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-16122#add-comment?atlOrigin=ey...
)
Get Jira notifications on your phone! Download the Jira Cloud app for Android (
https://play.google.com/store/apps/details?id=com.atlassian.android.jira....
) or iOS (
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=Em...
) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100214- sha1:c33f0bb )