[hibernate-issues] [Hibernate-JIRA] Commented: (ANN-658) Annotation or the key word "enum" to change default behaviour to @Enumerated(value=EnumType.STRING) for all properties.

Christian Olsson (JIRA) noreply at atlassian.com
Wed Apr 23 13:55:33 EDT 2008


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

Christian Olsson commented on ANN-658:
--------------------------------------

Why not some mechanism to change the default behavior to EnumType.STRING globally? Then we would not have to annotate every Enum. I suppose this would have to be some xml configuration.

> Annotation or the key word "enum" to change default behaviour to @Enumerated(value=EnumType.STRING)  for all properties.
> ------------------------------------------------------------------------------------------------------------------------
>
>                 Key: ANN-658
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/ANN-658
>             Project: Hibernate Annotations
>          Issue Type: Sub-task
>    Affects Versions: 3.3.0.ga
>         Environment: hibernate 3.2.4.sp1; PostgresSql 8.2
>            Reporter: Michael Grünewald
>             Fix For: JPA 2.0
>
>
> Hi, what I'm  looking for is an annotation
> for the key word
> enum
> e.g.
> public enum KnownCountries {
> which changes the default behavior for this enum for every property where I used that enum as property.
> At least it would be more convenient if you can change the default and only have to change it, on properties where you don't want your own default type.
> See
> http://forum.hibernate.org/viewtopic.php?p=2363187#2363187
> for more details.
> Greetings Michael

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