-->
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: Hibernate mapping:Bean class & MySQL DB View
PostPosted: Fri Aug 04, 2006 3:39 pm 
Newbie

Joined: Fri Mar 24, 2006 7:30 pm
Posts: 5
How can i do Hibernate mapping in hibernate mapping file (*.hbm.xml) for Bean class & MySQL DB View ?
ie: View is not a base table. How can i map(in the hibernate mapping file *.hbm.xml) view with the Bean ?
<Class name='' table=''> Can i mention view name as table name here ?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 07, 2006 12:00 pm 
Newbie

Joined: Fri Mar 24, 2006 7:30 pm
Posts: 5
Any update ?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 07, 2006 12:33 pm 
Expert
Expert

Joined: Tue Apr 25, 2006 12:04 pm
Posts: 260
Yes you can create mapping file for the view as if you were creating for table.


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.