-->
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.  [ 2 posts ] 
Author Message
 Post subject: Inheritance mapping
PostPosted: Fri Jun 11, 2004 9:36 am 
Beginner
Beginner

Joined: Wed Jun 09, 2004 8:10 am
Posts: 28
For example I have next hierarchy:

interface A (data related to it stored in tblA)
interface B (data related to it stored in tblB)
abstract class D implemnts A, B (data stored in tblD)
class E extends D (data stored in tblE)
class F extends D (needn't any specific data (inherits data from its ancestors))

Is it possible to map this hiearchy in hibernate?

Thnak you for your help!


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 14, 2004 3:35 am 
Beginner
Beginner

Joined: Wed Jun 09, 2004 8:10 am
Posts: 28
Sorry the example I've written. It isn't a good one and quite a messy one :).

Please try this one (from real application). It is a hierarchy of Documents (from documents management system):

Can I map next hierarchy using hibernate?

interface A1 -> data stored in tblA1
interface A2 extends A1 -> data stored in tblA2
interface A3 extends A2 -> data stored in tblA3

interface B1 extends A2 -> data stored in tblB1
interface C1 extends A2 -> (no data stored in any tables)

class A implements A3 (object data stored in tblA1,tblA2,tblA3)
class B implements B1 (object data stored in tblA1,tblA2,tblB1)
class C implements C1 (object data stored in tblA1,tblA2)

Is it possible to implement?


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

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.