[hibernate-issues] [Hibernate-JIRA] Updated: (HHH-3252) Retrieve right type of generic property

Diego Plentz (JIRA) noreply at atlassian.com
Sat May 3 14:11:33 EDT 2008


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

Diego Plentz updated HHH-3252:
------------------------------

    Affects Version/s:     (was: 3.2.6)
                       3.3.0.CR1
          Component/s: core

> Retrieve right type of generic property
> ---------------------------------------
>
>                 Key: HHH-3252
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-3252
>             Project: Hibernate3
>          Issue Type: Improvement
>          Components: core
>    Affects Versions: 3.3.0.CR1
>         Environment: Hibernate 3.2.6GA, MySQL5
>            Reporter: Rik van der Kleij
>
> To support the properties of the bean properties project (see https://bean-properties.dev.java.net/) I created a custom property accessor. This class works right. Problem is that Hibernate does not uses getReturnType() to determine type of property but reflection. So every property has type Serializable. Workaround is to set for each property @Target of @Type. It is much nicer if these annotations would not be necessary so no difference is seen with normal Java bean properties.

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