Joda-Money persistence via hibernate

前端 未结 6 2095
情话喂你
情话喂你 2021-02-13 17:58

There is a library for JodaTime that provides Hibernate persistence. Recently I started looking at Joda-Money and started to see how that can be persisted using hibernate and I

6条回答
  •  失恋的感觉
    2021-02-13 18:45

    Joda-Money's very new, so it's no surprise that noone's provided a Hibernate mapping for it yet.

    However, writing custom Hibernate type adapters is pretty straightforward. If you look at the source for the JodaTime adapters, you'll see they're really simple. See the docs for how to write your own.

提交回复
热议问题