What If the Entity contains an attribute that will eventually be stored into a JsonB column ( I have written a Converter for the commit operation ), how to perform deserialization of the request body in such a case. The Controller method is throwing
java.lang.UnsupportedOperationException: JsonObject
com.google.gson.JsonElement.getAsString(JsonElement.java:179)
com.haulmont.cuba.core.app.serialization.EntitySerialization$EntityDeserializer.readSimpleProperty(EntitySerialization.java:583)
because it is expecting a String, not a nested Json for the Entity attribute. Please note attribute has ‘String’ type in Entity class definition as JsonObject seems to be unacceptable.
How to perform the operation ?