Alexander Savov (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *commented* on HHH-16122 (
https://hibernate.atlassian.net/browse/HHH-16122?atlOrigin=eyJpIjoiNGIyOW...
)
Re: Named type [class xxx] did not implement BasicType nor UserType (
https://hibernate.atlassian.net/browse/HHH-16122?atlOrigin=eyJpIjoiNGIyOW...
)
Christian,
Thanks a lot for detailed response. It really means a lot to me!
” The workaround is to not use a *type variable* for persistent attribute types. ”: Maybe
this explains only the case when persisting an attribute of type
“type-variable-of-Generic-MappedSuperclass” ( Enum in our case). How is that
recommendation related to the original issue, where the attribute type of
ServiceTaskCallback serviceTaskCallback is *not* of
“type-variable-of-Generic-MappedSuperclass” and is still defined in
“{{TaskServiceDocument}}Generic-MappedSuperclass“:
43 @Type(JsonBinaryType. *class* )
44 @Column(columnDefinition = "jsonb")
*45 public* {{ ServiceTaskCallback serviceTaskCallback;}}
If I understand it correctly there might be two different issues when it comes to Generic
MappedSuperclass class:
@MappedSuperclass
public static class TaskServiceDocument<E extends Enum<E>> extends
MultiTenantDocument {
// Issue 1: the type-variable seems problematic
@Enumerated(EnumType.STRING)
public E taskSubStage;
// Issue 2: this is not working as issue description/repro states
@Type(JsonBinaryType.class)
@Column(columnDefinition = "jsonb")
public ServiceTaskCallback serviceTaskCallback;
}
Will the fix you mentioned address both issues? Or?
“In previous versions of Hibernate the type of that attribute was actually an (arbitrary)
one of the possible type arguments as provided through subtypes of TaskServiceDocument.
This is obviously wrong“. This might be wrong, however backward compatibility and
reasonable mitigation is also a dimension to consider from client/consumer perspective
when it comes to big legacy systems.
Christian, is there an opportunity to have a live chat, such as zoom, to ease the
communication?
(
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 )