Dear users,

I have a polymorphic situation: a Location (abstract) superclass with Depot (concrete) and Customer (concrete) subclasses . I have tried and succeeded in mapping this inheritance using annotations wit both JOINED and TABLE_PER_CLASS strategies.

But as I run unit tests, I have encountered a problem: using getHibernateTemplate().saveOrUpdate(Location) returns an error http:// pastebin.com/m6fa1f020

getHibernateTemplate().save(Location) appears to be working correctly, as I was able to save Customer and Depot objects and get correct class recognition all through the locationDao which extends appfuse's GenericDao<Location, Long>.

I could use any information and suggestions on this issue, whether is an expected behavior and why, or possible places to start debugging.

Thank you very much,

Pavel

Reply via email to