From noreply at atlassian.com Sat Jan 20 19:52:44 2007 Content-Type: multipart/mixed; boundary="===============2088908270909287281==" MIME-Version: 1.0 From: Paolo "Nusco" Perrotta (JIRA) To: hibernate-issues at lists.jboss.org Subject: [hibernate-issues] [Hibernate-JIRA] Commented: (ANN-539) Generics and @Embedded doesn't work Date: Sat, 20 Jan 2007 18:52:44 -0600 Message-ID: <198669485.1169340764173.JavaMail.j2ee@atlassian01.managed.contegix.com> In-Reply-To: 129538398.1169313344077.JavaMail.j2ee@atlassian01.managed.contegix.com --===============2088908270909287281== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable [ http://opensource.atlassian.com/projects/hibernate/browse/ANN-539?pag= e=3Dcomments#action_25875 ] = Paolo "Nusco" Perrotta commented on ANN-539: -------------------------------------------- This is almost certainly the same bug that causes ANN-526. = > Generics and @Embedded doesn't work > ----------------------------------- > > Key: ANN-539 > URL: http://opensource.atlassian.com/projects/hibernate/browse/A= NN-539 > Project: Hibernate Annotations > Type: Bug > Versions: 3.2.1 > Environment: Hibernate 3.2.1, Oracle 10XE > Reporter: Christophe Vanfleteren > Assignee: Paolo "Nusco" Perrotta > Attachments: generic.zip > > > It doesn't seem to be possible to use a plain generic field as a componen= t, > for example: > @Embedded > private Range bounds > doesn't work (you get an "org.hibernate.AnnotationException: Property gen= eric.GenericRange.min has an unbound type and no explicit target entity. Re= solve this Generic usage issue or set an explicit target attribute (eg @One= ToMany(target=3D) or use an explicit @Type") error. > It does work when you extend the generic class in which you define the ty= pe (IntegerRange extends Range) > for example: > @Embedded > private IntegerRange bounds > works > I've attached some classes that demeonstrate this problem. This issue was= raised before in http://opensource.atlassian.com/projects/hibernate/browse= /ANN-406?page=3Dcomments, but was rejected since no testcase was provided. -- = 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 --===============2088908270909287281==--