jansupol / jsonbapi

0 stars 0 forks source link

Extensible mapping #22

Open jansupol opened 9 years ago

jansupol commented 9 years ago

Allow definition of own custom mapping for types.

Affected Versions

[1.0 Public Review]

jansupol commented 6 years ago
jansupol commented 9 years ago

@glassfishrobot Commented Reported by snajper

jansupol commented 9 years ago

@glassfishrobot Commented hohwille said: The sad thing is that for every datatype you need to implement an own serializer and deserializer for jackson currently, further for JPA an AttributeConverter or for composed datatypes an proprietary hibernate UserType.

As I tried to discuss in serveral places (also on valhalla mailing ist, in jackson googlegroups, etc.) I wanted to state that the world could be so much easier if there was something offered by the JDK or a separate JSR/JEP so you can express and simply implement a simple datatype that will be understood by all the frameworks OOTB.

Some inspirations: http://m-m-m.sourceforge.net/apidocs/net/sf/mmm/util/lang/api/Datatype.html https://github.com/m-m-m/util/blob/master/mmm-util-core/src/main/java/net/sf/mmm/util/lang/api/AbstractSimpleDatatype.java https://github.com/m-m-m/util/tree/master/mmm-util-core/src/main/java/net/sf/mmm/util/lang/base/datatype/adapter

jansupol commented 9 years ago

@glassfishrobot Commented hohwille said: So one question is: What is JPA specific about AttributeConverter? If such things would be designed in even a wider scope they could bring more value.

jansupol commented 7 years ago

@glassfishrobot Commented This issue was imported from java.net JIRA JSONB_SPEC-22