Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
Hibernate version: 3.1.3
Mapping documents:
<hibernate-mapping>
<class name="ClassA" lazy="false">
<list name="attributes" lazy="true" cascade="all-delete-orphan" inverse="false">
<key column="object_id" not-null="true"/>
<index column="order_seq"/>
<one-to-many class="ve.com.tcs.process.to.AttributeTo"/>
</list>
</class>
</hibernate-mapping>
<hibernate-mapping>
<class name="ClassB" lazy="false">
<list name="attributes" lazy="true" cascade="all-delete-orphan" inverse="false">
<key column="object_id" not-null="true"/>
<index column="order_seq"/>
<one-to-many class="ve.com.tcs.process.to.AttributeTo"/>
</list>
</class>
</hibernate-mapping>
Full stack trace of any exception that occurs:
org.hibernate.MappingException: duplicate property mapping: _attributesBackref
at org.hibernate.mapping.PersistentClass.checkPropertyDuplication(PersistentClass.java:414)
at org.hibernate.mapping.PersistentClass.validate(PersistentClass.java:404)
at org.hibernate.mapping.RootClass.validate(RootClass.java:192)
at org.hibernate.cfg.Configuration.validate(Configuration.java:984)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1169)
at ve.com.tcs.process.bf.ProcessBf.<init>(ProcessBf.java:139)
at ve.com.tcs.process.bf.ProcessBf.<clinit>(ProcessBf.java:119)
at _organizationUnit._jspService(organizationUnit.jsp:5)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:350)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
at oracle.security.jazn.oc4j.JAZNFilter.doFilter(Unknown Source)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:663)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:285)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:126)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
at java.lang.Thread.run(Thread.java:534)
Name and version of the database you are using:Oracle10g release 2
I have an ATTRIBUTES table where I store additional attributes for other tables. I'm trying to map the relationship in two classes and I get Duplicate Backref