-->
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: HOW TO CHANGE THE MAPPING FROM TABLE TO VIEW
PostPosted: Wed Mar 23, 2011 1:25 am 
Newbie

Joined: Sun Mar 20, 2011 2:36 am
Posts: 7
Hello friends,
I am quite new to Hibernate technology.
Currently my hbm.xml file is mapping a oracle database table. I want to change the mapping to map from a table to a respective view.


<class name="com.packageName.MyPersistentClass"
table="TABLE_A"
select-before-update="true">
<id name="id" type="long">
<column name="COL_A_ID" not-null="true" />
<generator class="sequence">
<param name="sequence">SEQ_VED_ID</param>
</generator>
</id>
.....
....


Now I want to map from table A to a view "VIEW_A".

How do we proceed and what all changes do I need to make so as to map a view in hibernate.


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.