[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-4232) TypeDef support on @Embeddable or @MappedSuperClass classes (Sharath Reddy)

shane lee (JIRA) noreply at atlassian.com
Tue May 18 02:35:11 EDT 2010


    [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-4232?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=37183#action_37183 ] 

shane lee commented on HHH-4232:
--------------------------------

If i need need Hibernate 3.5.0-Beta-2 or higher, and version of hibernate annotations in jboss 5.1.0.GA is 3.4.0, can i just override this library in server common/lib folder? 

> TypeDef support on @Embeddable or @MappedSuperClass classes (Sharath Reddy)
> ---------------------------------------------------------------------------
>
>                 Key: HHH-4232
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-4232
>             Project: Hibernate Core
>          Issue Type: New Feature
>          Components: annotations
>         Environment: Oracle 11, hibernate 3.4.0 GA
>            Reporter: Ted Bergeron
>            Assignee: Sharath Reddy
>             Fix For: 3.5.0-Beta-2
>
>         Attachments: ANN-820.patch, HHH-4232.patch
>
>
> @TypeDefs({ 
> @TypeDef( 
> name = "status", 
> typeClass = EnumUserType.class, 
> parameters = {@Parameter(name = "enumClass", value = "com.acme.common.model.Status")} 
> ) 
> }) 
> I declare various @TypeDefs such as this. They all work fine when used in @Entity classes. When used in a @MappedSuperclass, or an @Embeddable, they fail. 
> I see from the docs that these are global and double checked that I do not have any duplicate @TypeDef definitions. 

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