Examples of ManyToOneType


Examples of org.hibernate.ogm.type.ManyToOneType

      return new ComponentType(componentType, this);
    }
    else if ( type instanceof org.hibernate.type.ManyToOneType ) {
      //do some stuff
      org.hibernate.type.ManyToOneType manyToOneType = (org.hibernate.type.ManyToOneType) type;
      return new ManyToOneType(manyToOneType, this);
    }
    else if ( type instanceof org.hibernate.type.OneToOneType ) {
      //do some stuff
      org.hibernate.type.OneToOneType oneToOneType = (org.hibernate.type.OneToOneType) type;
      return new OneToOneType(oneToOneType, this);
View Full Code Here

Examples of org.hibernate.ogm.type.ManyToOneType

      return new ComponentType(componentType, this);
    }
    else if ( type instanceof org.hibernate.type.ManyToOneType ) {
      //do some stuff
      org.hibernate.type.ManyToOneType manyToOneType = (org.hibernate.type.ManyToOneType) type;
      return new ManyToOneType(manyToOneType, this);
    }
    else if ( type instanceof org.hibernate.type.OneToOneType ) {
      //do some stuff
      org.hibernate.type.OneToOneType oneToOneType = (org.hibernate.type.OneToOneType) type;
      return new OneToOneType(oneToOneType, this);
View Full Code Here

Examples of org.hibernate.type.ManyToOneType

        Collection<?> objects) {
      this.objects = objects;
      int i = 0;
      for (Type type : childMetadata.getPropertyTypes()) {
        if (type instanceof ManyToOneType) {
          ManyToOneType mto = (ManyToOneType) type;
          if (mto.getAssociatedEntityName().equals(parentMetadata.getEntityName())) {
            parentName = childMetadata.getPropertyNames()[i];
          }
        }
        i++;
      }
View Full Code Here

Examples of org.hibernate.type.ManyToOneType

   *
   * @deprecated Use {@link TypeHelper#entity} instead; see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5182
   */
  @SuppressWarnings({ "JavaDoc", "UnusedDeclaration" })
  public static Type entity(String entityName) {
    return new ManyToOneType( NoScope.INSTANCE, entityName );
  }
View Full Code Here

Examples of org.hibernate.type.ManyToOneType

   *
   * @param persistentClass a mapped entity class
   */
  public static Type entity(Class persistentClass) {
    // not really a many-to-one association *necessarily*
    return new ManyToOneType( persistentClass.getName() );
  }
View Full Code Here

Examples of org.hibernate.type.ManyToOneType

   *
   * @param entityName a mapped entity class
   */
  public static Type entity(String entityName) {
    // not really a many-to-one association *necessarily*
    return new ManyToOneType( entityName );
  }
View Full Code Here

Examples of org.hibernate.type.ManyToOneType

   *
   * @param persistentClass a mapped entity class
   */
  public static Type entity(Class persistentClass) {
    // not really a many-to-one association *necessarily*
    return new ManyToOneType( persistentClass.getName() );
  }
View Full Code Here

Examples of org.hibernate.type.ManyToOneType

   *
   * @param entityName a mapped entity class
   */
  public static Type entity(String entityName) {
    // not really a many-to-one association *necessarily*
    return new ManyToOneType( entityName );
  }
View Full Code Here

Examples of org.hibernate.type.ManyToOneType

   *
   * @param persistentClass a mapped entity class
   */
  public static Type entity(Class persistentClass) {
    // not really a many-to-one association *necessarily*
    return new ManyToOneType( persistentClass.getName() );
  }
View Full Code Here

Examples of org.hibernate.type.ManyToOneType

   *
   * @param entityName a mapped entity class
   */
  public static Type entity(String entityName) {
    // not really a many-to-one association *necessarily*
    return new ManyToOneType( entityName );
  }
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.