Package org.hibernate.mapping

Examples of org.hibernate.mapping.SimpleValue.addColumn()


      copy.setUnique( column.isUnique() );
      copy.setSqlType( column.getSqlType() );
      copy.setCheckConstraint( column.getCheckConstraint() );
      copy.setComment( column.getComment() );
      copy.setDefaultValue( column.getDefaultValue() );
      key.addColumn( copy );
    }
    persistentClass.addJoin( join );
    return join;
  }
}
View Full Code Here


      copy.setUnique( column.isUnique() );
      copy.setSqlType( column.getSqlType() );
      copy.setCheckConstraint( column.getCheckConstraint() );
      copy.setComment( column.getComment() );
      copy.setDefaultValue( column.getDefaultValue() );
      key.addColumn( copy );
    }
    persistentClass.addJoin( join );
    return join;
  }
}
View Full Code Here

        }

        for (String field : formFields) {
            SimpleValue simpleValue = new SimpleValue();
            String columnName = FORM_PREFIX_COLUMN + field;
            simpleValue.addColumn(new Column(columnName));
            simpleValue.setTypeName("text");
            Property property = new Property();
            property.setName(field);
            property.setValue(simpleValue);
            customComponent.addProperty(property);
View Full Code Here

    while ( columnIterator.hasNext() ) {
      Column fkcolumn = (Column) columnIterator.next();
      if(fkcolumn.getSqlTypeCode()!=null) { // TODO: user defined foreign ref columns does not have a type set.
        guessAndAlignType(collectionTable, fkcolumn, mapping, false); // needed to ensure foreign key columns has same type as the "property" column.
      }
      keyValue.addColumn( fkcolumn );
    }

    collection.setKey(keyValue);

    mappings.addCollection(collection);
View Full Code Here

    return makeProperty(TableIdentifier.create( table ), propertyName, value, true, true, false, null, null);
  }

  private SimpleValue bindColumnToSimpleValue(Table table, Column column, Mapping mapping, boolean generatedIdentifier) {
    SimpleValue value = new SimpleValue(mappings, table);
    value.addColumn(column);
    value.setTypeName(guessAndAlignType(table, column, mapping, generatedIdentifier));
    return value;
  }

    /**
 
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.