Hibernate ORM IntegerType - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Hibernate ORM IntegerType class.

This code example shows how to use the following methods:
		registerColumnType(Types.BLOB, "blob");
		registerColumnType(Types.CLOB, "clob");
		registerColumnType(Types.BOOLEAN, "integer");
 
		NullableType stringType = new StringType();
		NullableType integerType = new IntegerType();
		registerFunction("concat", new VarArgsSQLFunction(stringType, "", "||", ""));
		registerFunction("mod", new SQLFunctionTemplate(integerType, "?1 % ?2"));
		registerFunction("substr", new StandardSQLFunction("substr", stringType));
		registerFunction("substring", new StandardSQLFunction("substr", stringType));
	} 
 
	public boolean supportsIdentityColumns() { 
		return true; 
	} 
 
	/* 
	 public boolean supportsInsertSelectIdentity() { 
	 return true; // As specify in NHibernate dialect 
	 } 
Full Snippet Info
4
CodeRank
Stop searching for code, let great code find you!  Add Codota to your java IDE
This code example shows how to use the following methods:
 
    private Method identifierMethod;
 
    private Method valueOfMethod;
 
    private final IntegerType type = new IntegerType();
 
    private int[] sqlTypes;
 
    @Override 
    public void setParameterValues(final Properties parameters) {
        final String enumClassName = parameters.getProperty("enumClass");
        try { 
            enumClass = Class.forName(enumClassName).asSubclass(Enum.class);
        } catch (final ClassNotFoundException cfne) {
            final String message = "Enum class not found";
            throw new HibernateException(message, cfne);
        } 
        final String identifierMethodName = parameters.getProperty("identifierMethod", DEFAULT_IDENTIFIER_METHOD_NAME);
        try { 
Full Snippet Info
4
CodeRank
Stop searching for code, let great code find you!  Add Codota to your java IDE
This code example shows how to use the following methods:
            return Collections.emptyList();
        } 
        String hql = "from Ip i where i.platform.id in (:platformIds)";
        return getSession() 
            .createQuery(hql)
            .setParameterList("platformIds", platformIds, new IntegerType())
            .list(); 
    } 
 
} 
Full Snippet Info
4
CodeRank
Stop searching for code, let great code find you!  Add Codota to your java IDE
This code example shows how to use the following methods:
    private static final Map<Class<?>,Type> TYPES = new HashMap<Class<?>,Type>();
 
    static{ 
        TYPES.put(Byte.class, new ByteType());
        TYPES.put(Short.class, new ShortType());
        TYPES.put(Integer.class, new IntegerType());
        TYPES.put(Long.class, new LongType());
        TYPES.put(BigInteger.class, new BigIntegerType());
        TYPES.put(Double.class, new DoubleType());
        TYPES.put(Float.class, new FloatType());
        TYPES.put(BigDecimal.class, new BigDecimalType());
    } 
 
    private HibernateUtil() {} 
 
    public static void setConstants(Query query, Map<Object,String> constants, 
            Map<ParamExpression<?>, Object> params) {
        for (Map.Entry<Object, String> entry : constants.entrySet()) {
            String key = entry.getValue();
            Object val = entry.getKey(); 
Full Snippet Info
3
CodeRank
Stop searching for code, let great code find you!  Add Codota to your java IDE
See Code Examples for Hibernate ORM IntegerType Methods: