-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Tablemapping depending on class.attribute
PostPosted: Mon Mar 04, 2013 10:17 am 
Newbie

Joined: Fri Mar 01, 2013 3:33 pm
Posts: 2
My books and google-search show only basic-mapping and promise me
that hibernate is powerfull enough to do more complex-mapping as described below, but how?

Image
http://www.imgbox.de/users/public/images/15FItNgHaB.jpg

Because the final model isn't known yet, the application doesn't use JavaClasses directly to model for example
'Cat's and 'Dog's, but uses meta-elements instead such as the Java-classes MetaClass, MetaAttribute, etc.
With the basic-mappings the database would contain only a few tables, the one for the above meta-java-classes.
But with this method apples and oranges would be mixed in the database in only 1 metaclasses-table.
Instead the desired mapping should map the single java-class MetaClass to different tables, depending on
the attributes (for example MetaClass.classname).

Is this possible with hibernate?

Maybe I don't have the right terms to search for, and need any help such as literature, examples or experiences.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.