Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [Teneo] Problem using JOINED value for PersistenceOptions.INHERITANCE_MAPPING
[Teneo] Problem using JOINED value for PersistenceOptions.INHERITANCE_MAPPING [message #603905] Tue, 27 March 2007 21:30
Mark Geib is currently offline Mark GeibFriend
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.
Previous Topic:[Teneo] HibernateResource with mapping file
Next Topic:[Teneo] Problem using JOINED value for PersistenceOptions.INHERITANCE_MAPPING
Goto Forum:
  


Current Time: Tue Apr 23 16:03:27 GMT 2024

Powered by FUDForum. Page generated in 0.02838 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top