The orginal problem was fixed while i was at JBoss world :-), but now the we are experiencing some different problems that i think are related.
We have a similar setup with inheritiance accross multiple .ear archives, the classes in the different ears are managed by different Persistence Context and thus by different EntityManagers. The exception we are now getting is a when trying to persist a class that inherits
Code:
org.hibernate.HibernateException: instance is not of excepected type : <grandchild entity>
is not a: <parent entity>
but this is not the case, as via the class.getSuperclass methods it can be seen that the granchild is of the same type as the parent.
We are currently trying to persist the parent type, but a this could be a grandchild. The inheritance is table per subclass (or InheritanceType.JOINED)
Is the fact that grandchild's entitymanager does not know about the parent what causes the problem ? Or is it the way that we are trying to persist the objects the problem ?
Any suggestions ?
Cheers,
Andy