Code example for OneToMany

Methods: getAssociatedClass

0
	private Object acceptToOne(ToOne value) {
		return value.getReferencedEntityName(); // should get the cfg and lookup the persistenclass.			
	} 
	 
	public Object accept(OneToMany value) {
		return value.getAssociatedClass().getEntityName();
	} 
	 
	public Object acceptCollection(Collection c) {
		return c.getElement().accept( this );
	} 
	 
	public Object accept(Bag o) {
		return acceptCollection( o );
	} 
	 
	public Object accept(List o) {
		return acceptCollection( o );
	}