Check http://stackoverflow.com/questions/23662428/hibernate-object-with-id-x-was-not-of-the-specified-subclass-b-discriminator