[hibernate-issues] [Hibernate-JIRA] Created: (ANN-732) Retrieve right type of generic property

Rik van der Kleij (JIRA) noreply at atlassian.com
Thu Apr 24 14:00:33 EDT 2008


Retrieve right type of generic property
---------------------------------------

                 Key: ANN-732
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/ANN-732
             Project: Hibernate Annotations
          Issue Type: Improvement
    Affects Versions: 3.3.1.GA
         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