Loading
   "> Collection mapping in hibernate    ">

Java Quick Notes

Refresh Your Java - Before Java Interview

We are Agile, believe in less Documentation - Only Quick notes (Java Interview Questions) of Java/J2ee Read more....


Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet

Go to SiteMap

Q)  Collection mapping in hibernate and How many types of Collection Mappings exist ?


Ans)

The Hibernate mapping element used for mapping a collection depends upon
the type of interface.

Here are list of Collections you can use.
• <set>
• <map>
• <bag>
• <list>
• <array>

Here is a quick sample

<class name="Product">
<id name="serialNumber" column="productSerialNumber"/>
 <set name="parts"> <key column="productSerialNumber" not-null="true"/>
<one-to-many class="Part"/>
</set>
 </class>



Back to top

------------------------- We hope you got necessary Info On -----------------------------------------

Collection mapping in hibernate


Collection mapping in hibernate

-------------------------------------------------------------------------------------------------------



Face Book
Request for a Mock Interview/Training

Get a PDF

Face Book
Same look (Read) on any device, this is Ads free