[hibernate-issues] [Hibernate-JIRA] Updated: (METAGEN-28) Custom UserType not supported in Hibernate's static MetaModel generator

Hardy Ferentschik (JIRA) noreply at atlassian.com
Wed Mar 10 08:50:47 EST 2010


     [ http://opensource.atlassian.com/projects/hibernate/browse/METAGEN-28?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hardy Ferentschik updated METAGEN-28:
-------------------------------------

    Description: 
If an Entity has a custom Hibernate User type @Type it will not get generated in the static MetaModel class "Item_".

This seems easy to fix by checking if the element being process has a @Type annotation then process it.

{code}
AnnotationMetaEntity.isBasicAttribute()
 ...
   if(TypeUtils.containsAnnotation(element, Type.class)
   {
     return true;
   }
{code}



  was:
If an Entity has a custom Hibernate User type @Type it will not get generated in the static MetaModel class "Item_".

This seems easy to fix by checking if the element being process has a @Type annotation then process it.

AnnotationMetaEntity.isBasicAttribute()
 ...
   if(TypeUtils.containsAnnotation(element, Type.class)
   {
     return true;
   }



    Component/s: processor

> Custom UserType not supported in Hibernate's static MetaModel generator
> -----------------------------------------------------------------------
>
>                 Key: METAGEN-28
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/METAGEN-28
>             Project: Hibernate Metamodel Generator
>          Issue Type: Bug
>          Components: processor
>    Affects Versions: 1.0.0-CR-1
>            Reporter: jean-claude cote
>            Assignee: Hardy Ferentschik
>            Priority: Minor
>             Fix For: 1.1.0
>
>
> If an Entity has a custom Hibernate User type @Type it will not get generated in the static MetaModel class "Item_".
> This seems easy to fix by checking if the element being process has a @Type annotation then process it.
> {code}
> AnnotationMetaEntity.isBasicAttribute()
>  ...
>    if(TypeUtils.containsAnnotation(element, Type.class)
>    {
>      return true;
>    }
> {code}

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