From: Adrian S. (JIRA) <no...@at...> - 2006-07-06 21:02:56
|
Property pointed to by "mappedBy" not found if defined in superclass of class referenced by "targetType" -------------------------------------------------------------------------------------------------------- Key: ANN-390 URL: http://opensource.atlassian.com/projects/hibernate/browse/ANN-390 Project: Hibernate Annotations Type: Bug Environment: Windows XP SP2, Eclipse 3.2 final, WTP 1.5 final HibernateTools-3.2.0.200607060659-nightly.zip with relevant jars in org.hibernate.eclipse_3.2.0.200607060659-nightly plugin replaced with same date jars built from SVN. Removed WTP plugins from Hibernate Tools dist since I already had them loaded. I realize that this does not exactly match the build drivers for the nightly I'm using, but I don't think this is the issue here. Reporter: Adrian Sampaleanu When trying to open session factory in the Hibernate Console, I get: org.hibernate.AnnotationException: mappedBy reference an unknown property: com.tirawireless.jump.jdm.model.task.DeploymentTaskImpl.deploymentPlan in com.tirawireless.jump.jdm.model.plan.DeploymentPlanImpl.deploymentTasks at org.hibernate.cfg.annotations.CollectionBinder.bindStarToManySecondPass(CollectionBinder.java:503) ..... The relevant property and annotation is as follows: @OneToMany(targetEntity = DeploymentTaskImpl.class, mappedBy = "deploymentPlan", fetch = FetchType.LAZY) @OrderBy(clause = "name ASC") @Cascade({CascadeType.SAVE_UPDATE}) public Set<DeploymentTask> getDeploymentTasks() The "deploymentPlan" property is _not_ defined in DeploymentTaskImpl, but is defined in it's superclass. I would think that it should be visible when establishing the mapping above. Have not found this issue addressed in either the forums or JIRA. -- 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 |