Hi, there.
As a newbie in Hibernate, I face a pretty confusing issue now.
In my domain object there's a property of which type is 'int'.
The DB table column that correspons to the property has Decimal(5,0) for example. What would be the best way to convert between these two different types?
Supposed that no changes on any of each side will be possible.
In my thought, I have several guesses.
1. HBM supports this in nature?
2. UserType will be required?
3. PrimitiveType is the one?
... etc.
Please share your knowledge for me, Thanks a lot.
Brendan
|