Code example for ToOne

Methods: getReferencedEntityName

0
	public Object accept(ManyToOne o) {
		return acceptToOne(o);
	} 
	 
	private Object acceptToOne(ToOne value) {
		return value.getReferencedEntityName(); // should get the cfg and lookup the persistenclass.			
	} 
	 
	public Object accept(OneToMany value) {
		return value.getAssociatedClass().getClassName();
	} 
	 
	private String toName(Class c) {
 
		if ( c.isArray() ) {
			Class a = c.getComponentType();
			 
			return a.getName() + "[]";
		} 
		else {