KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hibernate > cfg > annotations > BagBinder


1 package org.hibernate.cfg.annotations;
2
3 import org.hibernate.mapping.Collection;
4 import org.hibernate.mapping.PersistentClass;
5
6 /**
7  * Bind a bag.
8  *
9  * @author Matthew Inger
10  */

11 public class BagBinder extends CollectionBinder{
12
13     public BagBinder() {}
14
15     protected Collection createCollection(PersistentClass persistentClass) {
16         return new org.hibernate.mapping.Bag(persistentClass);
17     }
18 }
19
Popular Tags