Package org.hibernate.type

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


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

       Iterator columnIterator = property.getColumnIterator();
       Column column;
      
       if (propertyType instanceof ManyToOneType){ // chiave esterna
        
         ManyToOneType manyToOnePropertyType = (ManyToOneType)propertyType;
         String entityType = manyToOnePropertyType.getAssociatedEntityName();
        
         String columnName = null;
         if (columnIterator.hasNext()){
           column = (Column)columnIterator.next();
           columnName = column.getName(); // ????
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

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

   *
   * @deprecated see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5182
   */
  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.