[
http://opensource.atlassian.com/projects/hibernate/browse/HHH-4392?page=c...
]
Jon Todd commented on HHH-4392:
-------------------------------
+1 For this feature. This would make the code more DRY and would be inline with how other
java api's tackle this problem. JaxB has a the same concept with
"@XmlJavaTypeAdapter"
{code}
@XmlJavaTypeAdapter(PercentXmlAdapter.class)
@Type(type = "com.structuralwealth.common.persistence.PercentUserType")
public final class Percent extends BigDecimal{
...
{code}
Could @Type be supported at the class level for custom user types?
------------------------------------------------------------------
Key: HHH-4392
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-4392
Project: Hibernate Core
Issue Type: Improvement
Components: annotations
Reporter: Steve Ebersole
Priority: Minor
e.g I have a MonetaryAmount class, with a MonetaryAmountUserType implementing UserType.
Would it be possible to define that metadata as a @Type annotation on the MonetaryAmount
class? Seems like a nice default.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira