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.  [ 3 posts ] 
Author Message
 Post subject: Virtual Mapping to invoke the SuperClass
PostPosted: Tue Jan 13, 2009 1:37 pm 
Newbie

Joined: Tue Jan 13, 2009 1:30 pm
Posts: 3
Hi,

I need to call one superClass Bean from Other SubClassBean which does nt have any table.Is there any provision is available just invoke the another mapping file from the present one.for an example i have DBDealBean Mapping file (Subclass has no tables) from this i want to invoke the Other Mapping file (JobSpecBean) whenever my application looking up for DBDealBean Mapping.

Very New to Hibernate and help would be great.



Thanks
Karthik.
Code:
<hibernate-mapping>
<class name="DBDealBean" >
  Can be invoke other Mapping here???
</class>
</hibernate-mapping>


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 13, 2009 5:05 pm 
Regular
Regular

Joined: Tue Dec 30, 2008 8:14 pm
Posts: 50
If you are trying to map the subclass to the parent table, "table per class heirarchy" may work.
http://www.hibernate.org/hib_docs/refer ... tance.html

---
please rate.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 13, 2009 5:08 pm 
Newbie

Joined: Tue Jan 13, 2009 1:30 pm
Posts: 3
No.My SubClass has only some of the Getter Methods those Just returning Some values.Nothing mapped with the table.

Just needs the invocation kind of calling superClass mapping file when it tried to lookup the subclass mapping..


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.