[Teneo] Problem using JOINED value for PersistenceOptions.INHERITANCE_MAPPING [message #603905] |
Tue, 27 March 2007 21:30 |
Mark Geib Messages: 432 Registered: July 2009 |
Senior Member |
|
|
Martin,
I have a problem in that my model has sub-classes which have attributes of
the same name, but different types. So using the default SINGLE_TABLE will
not work.
I tried to set the PersistenceOptions.INHERITANCE_MAPPING to JOINED, but
then have a problem in that there seems to be a limit in mysql that
prevents accessing my objects when there are more than 61 tables in a
join...
So, can I use TABLE_PER_CLASS.? If so how do I handle the issue with not
being able to use generated column keys...?
I get this when I use TABLE_PER_CLASS..
Exception in thread "main" org.hibernate.MappingException: Cannot use
identity column key generation with <union-subclass> mapping for:
AttrCueSource
at
org.hibernate.persister.entity.UnionSubclassEntityPersister. <init>(UnionSubclassEntityPersister.java:67)
at
org.hibernate.persister.PersisterFactory.createClassPersiste r(PersisterFactory.java:61)
Thanks,
Mark.
|
|
|
Powered by
FUDForum. Page generated in 0.02838 seconds