Пример #1
0
 public String getSqlType(Dialect dialect, Mapping mapping) throws HibernateException {
   if (sqlType == null) {
     sqlType =
         dialect.getTypeName(getSqlTypeCode(mapping), getLength(), getPrecision(), getScale());
   }
   return sqlType;
 }
 public String[] sqlCreateStrings(Dialect dialect) throws HibernateException {
   return new String[] {
     new StringBuffer(dialect.getCreateTableString())
         .append(' ')
         .append(tableName)
         .append(" ( ")
         .append(pkColumnName)
         .append(' ')
         .append(dialect.getTypeName(Types.VARCHAR, keySize, 0, 0))
         .append(",  ")
         .append(valueColumnName)
         .append(' ')
         .append(dialect.getTypeName(Types.INTEGER))
         .append(" ) ")
         .toString()
   };
 }