Issue Type: Bug Bug
Affects Versions: 4.1.9
Assignee: Unassigned
Attachments: HibernateMergeTest.zip
Created: 17/Dec/12 2:53 PM
Description:

Full test case included, short description:
1)ObjectGraph has collection (@OneToMany) of nodes and one of these nodes is marked as root (@ManyToOne)
2)Each node can be connected to many nodes, so each node has incoming (@ManyToMany) and outgoing (@ManyToMany) nodes.
3)There are diffrent implementation of nodes so GraphNode is abstract (@Inheritance(strategy = InheritanceType.SINGLE_TABLE))

In first transaction I create new grap with one node. In second transaction I add new node to graph and connect with first node. When trying to merge object graps execption is thrown:

org.hibernate.InstantiationException: Cannot instantiate abstract class or interface: dl.hibernate.GraphNode

Graph node is abstract.

Environment: Java 1.6.30, Hibernate 4.1.9, Oracle 10g XE, Windows XP
Project: Hibernate ORM
Priority: Major Major
Reporter: Daniel Lipski
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira