org.hibernate.mapping.Bag Java Examples

The following examples show how to use org.hibernate.mapping.Bag. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ValueVisitorTest.java    From cacheonix-core with GNU Lesser General Public License v2.1 6 votes vote down vote up
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);
	
		
	}
 
Example #2
Source File: HbmBinder.java    From cacheonix-core with GNU Lesser General Public License v2.1 4 votes vote down vote up
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;
}
 
Example #3
Source File: ValueVisitorTest.java    From cacheonix-core with GNU Lesser General Public License v2.1 4 votes vote down vote up
public Object accept(Bag bag) {
	return validate(Bag.class, bag);
}