Java 类org.hibernate.mapping.Bag 实例源码

项目:cacheonix-core    文件:ValueVisitorTest.java   
public void testProperCallbacks() {

        ValueVisitor vv = new ValueVisitorValidator();

        new Any(new Table()).accept(vv);
        new Array(new RootClass()).accept(vv);
        new Bag(new RootClass()).accept(vv);
        new Component(new RootClass()).accept(vv);
        new DependantValue(null,null).accept(vv);
        new IdentifierBag(null).accept(vv);
        new List(null).accept(vv);
        new ManyToOne(null).accept(vv);
        new Map(null).accept(vv);
        new OneToMany(null).accept(vv);
        new OneToOne(null, new RootClass() ).accept(vv);
        new PrimitiveArray(null).accept(vv);
        new Set(null).accept(vv);
        new SimpleValue().accept(vv);


    }
项目:lams    文件:HbmBinder.java   
public Collection create(Element node, String path, PersistentClass owner,
        Mappings mappings, java.util.Map inheritedMetas) throws MappingException {
    Bag bag = new Bag( mappings, owner );
    bindCollection( node, bag, owner.getEntityName(), path, mappings, inheritedMetas );
    return bag;
}
项目:cacheonix-core    文件:HbmBinder.java   
public Collection create(Element node, String path, PersistentClass owner,
        Mappings mappings, java.util.Map inheritedMetas) throws MappingException {
    Bag bag = new Bag( owner );
    bindCollection( node, bag, owner.getEntityName(), path, mappings, inheritedMetas );
    return bag;
}
项目:cacheonix-core    文件:ValueVisitorTest.java   
public Object accept(Bag bag) {
    return validate(Bag.class, bag);
}