Hibernate version:
3.0.5
Full stack trace of any exception that occurs:
Unknown entity: com.semagix.core.extraction.model.TransientEntity
Name and version of the database you are using:
hsqldb 1.8.0
I have what i think is probably an easy problem to fix, but I'm not sure of the best approach. I have a mapped class Entity in a library, and i've subclassed it with an unmapped class for some extra data. I'd like to be able to use them without worrying about the type (i.e. reference both as an Entity object ala instanceof), but when i persist, I only want to persist the Entity object, not any of the TransientEntity object's properties. I get the above stack trace when i try to saveOrUpdate the TransientEntity object, eventhough it's a subclass of an Entity. Is there a way to save it w/o mapping it, short of a deep copy?
Thanks,
Jason
|