Best code examples for Hibernate ORM BigDecimalType class (org.hibernate.type.BigDecimalType)

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Hibernate ORM BigDecimalType class.
You can now enable Codota on your own code to easily search and navigate your Java codebase.

Hibernate ORM BigDecimalType examples from Open Source projects
This code example shows how to use the following methods:
        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(); 
            if (Param.class.isInstance(val)) {
                val = params.get(val); 
                if (val == null) { 
                    throw new ParamNotSetException((Param<?>) entry.getKey()); 
                } 
Full Snippet Info
3
CodeRank