Examples of ToOne


Examples of org.hibernate.mapping.ToOne

    value.setTypeUsingReflection( className, propertyName );

    // this is done here 'cos we might only know the type here (ugly!)
    // TODO: improve this a lot:
    if ( value instanceof ToOne ) {
      ToOne toOne = (ToOne) value;
      String propertyRef = toOne.getReferencedPropertyName();
      if ( propertyRef != null ) {
        mappings.addUniquePropertyReference( toOne.getReferencedEntityName(), propertyRef );
      }
    }
    else if ( value instanceof Collection ) {
      Collection coll = (Collection) value;
      String propertyRef = coll.getReferencedPropertyName();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.