Replies: 3 comments 4 replies
-
/cc @Sanne (hibernate-orm), @gsmet (hibernate-orm), @yrodiere (hibernate-orm) |
Beta Was this translation helpful? Give feedback.
2 replies
-
OK, I have found a workaround. The Hibernate mapping is expecting a constructor parameter of type Object for the JSON-B column. So, if you give it one, and then perform an unchecked cast in the constructor it works "fine".
|
Beta Was this translation helpful? Give feedback.
2 replies
-
I ended up using |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a constructor with a Map<String, Object> field that should bind to a JSON-B field, but Hibernate can't find it and fails with "org.hibernate.hql.internal.ast.QuerySyntaxException: Unable to locate appropriate constructor on class".
The column is defined like this:
and I have this dependency:
EDIT: Data is persisted fine with these definitions, but attempting to retrieve it causes the exception.
Beta Was this translation helpful? Give feedback.
All reactions