Hello, I have a similar problem here. My DB is MySQL, and was running JBoss(which uses Hibernate as Persistence Provider), and with some data in DB.
Now I have switched to 'tomcat with openejb 3.1 integration', persistence provider is openjpa. Following the instructions, I have marked the superclass with @Inheritance(strategy = InheritanceType.TABLE_PER_CLASS). But when I call merge(), openjpa throwed an exception ' org.apache.openjpa.persistence.EntityNotFoundException: Attempted to attach instance "3" of type "class A", but this instance is already in the datastore as type "class B".' Any work-arounds on this? Many thanks! -- View this message in context: http://n2.nabble.com/same-%40Id-on-mapped-superclass-tp2435374p2574513.html Sent from the OpenJPA Users mailing list archive at Nabble.com.
