m-m-m / util

Mature Modular Meta-Framework
http://m-m-m.sourceforge.net
Apache License 2.0
10 stars 5 forks source link

mmm-util-core: generic datatype description and adapter support #123

Closed hohwille closed 10 years ago

hohwille commented 10 years ago

We already added great support for custom datatypes. However, when dealing with JPA/Hibernate, Jackson, JAXB, etc. you always have to implement and register adapters. Many people do not know how to do this or even that it is possible at all. We want to provide an easy and generic solution so you only have to implement an adapter once and gain datatype support for all marshalling and mapping frameworks in a generic way. When using SimpleDatatype there should be automatic support without implementing anything (so only composed datatypes require an adapter implementation).

hohwille commented 10 years ago

Now integration with Jackson works smooth for arbitrary custom datatypes including enums.

We only need to implement a spring jpa post processor that creates user types dynamically for custom datatypes.

hohwille commented 10 years ago

Actually, fully generic support for JPA or hibernate requires some deeper integration and should go to mmm-persistence rather than mmm-util-core. For Jackson we have created a working solution. For JAXB we could not find an easy way to hook in for dynamic resolution. We have reached what is possible and makes sense for the moment.

hohwille commented 10 years ago

After creating #127 this issue is considered as done.