1 package org.hibernate.mapping; 3 4 import org.hibernate.type.CollectionType; 5 import org.hibernate.type.TypeFactory; 6 7 11 public class Bag extends Collection { 12 13 public Bag(PersistentClass owner) { 14 super(owner); 15 } 16 17 public CollectionType getDefaultCollectionType() { 18 return TypeFactory.bag( getRole(), getReferencedPropertyName(), isEmbedded() ); 19 } 20 21 void createPrimaryKey() { 22 } 24 25 public Object accept(ValueVisitor visitor) { 26 return visitor.accept(this); 27 } 28 } 29 | Popular Tags |