[hibernate-issues] [Hibernate-JIRA] Commented: (ANN-769) Ignore unmapped enum values - org.hibernate.type.EnumType throws exceptions when trying to map unknown values to an Enum

Emmanuel Bernard (JIRA) noreply at atlassian.com
Wed Aug 27 07:26:26 EDT 2008


    [ http://opensource.atlassian.com/projects/hibernate/browse/ANN-769?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_31000 ] 

Emmanuel Bernard commented on ANN-769:
--------------------------------------

1. is not possible but 2. is.


> Ignore unmapped enum values - org.hibernate.type.EnumType throws exceptions when trying to map unknown values to an Enum
> ------------------------------------------------------------------------------------------------------------------------
>
>                 Key: ANN-769
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/ANN-769
>             Project: Hibernate Annotations
>          Issue Type: Improvement
>    Affects Versions: 3.4.0.GA
>            Reporter: Alvin
>
> The issue is described in a previous Jira - http://opensource.atlassian.com/projects/hibernate/browse/ANN-717.
> To solve this particular scenario could we add either (unless someone has a more correct method) -
> - an attribute to the @Enumerated annotation so that ignores values in the database which are not mapped via the Enum
> - extend @NotFound annotation so it also works on enums

-- 
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