Open roma2341 opened 1 month ago
Looks like you figured how to do this already. Write a custom type like you did an leverage the converter in it to construct the object from the string. The Jackson integration only helps with deserializing entity-views from a JSON payload. Also see the documentation about this.
I need to use this Hibernate entity field in my entity view:
But it says that multiset mode doesn't support it. Can I define a simple interface for vendorParty to map this field? This class had a lot of fields and I don't know how to create a custom blaze type for it without pain.
In this case, Blaze Persistence should do it as it has a converter and LONGTEXT type.
Update: I could easily write the custom type as it receives JSON as input, I thought that converter always receives tuples e.g ["1","2022-05-02","test"].
My converter:
Or I may need to convert this columnDefinition to JSON and Blaze Persistence will know how to map it ?. I see some Blaze Jackson integrations, but what they do is unclear. do they only change internal mapping logic or allow the use of JSON column definition fields in entity views ?.