[hibernate-issues] [Hibernate-JIRA] Updated: (ANN-425) @ManyToOne defined as @Id in a @MappedSuperclass/@EmbeddableSuperclass can't be reached by an @OneToMany(mappedBy)
Giampaolo Tomassoni (JIRA)
noreply at atlassian.com
Tue Aug 29 06:20:24 EDT 2006
[ http://opensource.atlassian.com/projects/hibernate/browse/ANN-425?page=all ]
Giampaolo Tomassoni updated ANN-425:
------------------------------------
Attachment: test01c.zip
test01c.zip contains a complete PK class which is inherited by the AB class. This way code duplication is reduced to a minimum. But this test case doesn't work too. At deploy I get this time too a:
org.hibernate.AnnotationException: biz.tomassoni.hibernate.test01.ABPK has no persistent id property
> @ManyToOne defined as @Id in a @MappedSuperclass/@EmbeddableSuperclass can't be reached by an @OneToMany(mappedBy)
> ------------------------------------------------------------------------------------------------------------------
>
> Key: ANN-425
> URL: http://opensource.atlassian.com/projects/hibernate/browse/ANN-425
> Project: Hibernate Annotations
> Type: Bug
> Versions: 3.1beta3, 3.1beta4, 3.1beta5, 3.1beta6, 3.1beta7, 3.1beta8, 3.1beta9, 3.1.0.Beta10, 3.2.0.cr1
> Environment: hibernate-3.2.CR2 + hibernate-annotations-3.2.0-CR1 + hibernate-entitymanager-3.2.0-CR1 under JBoss 4.0.4-GA and EJB3
> Reporter: Giampaolo Tomassoni
> Attachments: test01.zip, test01b.zip, test01c.zip
>
>
> The case in subject reports the following error:
> org.hibernate.AnnotationException: mappedBy reference an unknown property: biz.tomassoni.hibernate.test01.AB.a in biz.tomassoni.hibernate.test01.A.a
> It is months now that this problem had been reported (by me and by other), but no progress.
> I'm attaching a testcase in the hope it can be useful.
--
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