[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-4392) Could @Type be supported at the class level for custom user types?
Jon Todd (JIRA)
noreply at atlassian.com
Tue Mar 30 12:11:31 EDT 2010
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-4392?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=36030#action_36030 ]
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.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the hibernate-issues
mailing list