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.
|
|