It's not clear to me from the javadocs what the difference is between UserType and CompositeUserType. Can someone explain?
I'm writing a MoneyType, similar to what's in Chapter 6 of "Hibernate In Action". The difference is that I want to have two attributes: an amount and a currency that's variable. (The example only has an amount and assumes USD.)
I'm almost finished with it. It's straightforward, except for the disassemble, assemble, and replace methods. (Gotta figure those out, too.) Then I came across CompositeUserType. It brought me up short. Was I implementing the wrong interface?
%
_________________ MOD
|