Package org.hibernate.type

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


   *
   * @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

   *
   * @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

   *
   * @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

   *
   * @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

   *
   * @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

   *
   * @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

   *
   * @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

   *
   * @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

   *
   * @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

TOP

Related Classes of org.hibernate.type.ManyToOneType

Copyright © 2018 www.massapicom. 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.