Package org.hibernate.type

Examples of org.hibernate.type.AbstractSingleColumnStandardBasicType


   
    @Override
    @SuppressWarnings("rawtypes")
    public Object readGenericEntity(Class<?> clazz, Object id) {
        Map<String, Object> md = daoHelper.getIdMetadata(clazz, (HibernateEntityManager) em);
        AbstractSingleColumnStandardBasicType type = (AbstractSingleColumnStandardBasicType) md.get("type");
       
        if (type instanceof LongType) {
            id = Long.parseLong(String.valueOf(id));
        } else if (type instanceof IntegerType) {
            id = Integer.parseInt(String.valueOf(id));
View Full Code Here


        jpaAttributeConverterDefinition.getAttributeConverter(),
        sqlTypeDescriptor
    );

    final String name = "BasicType adapter for AttributeConverter<" + entityAttributeJavaType + "," + databaseColumnJavaType + ">";
    type = new AbstractSingleColumnStandardBasicType( sqlTypeDescriptorAdapter, javaTypeDescriptor ) {
      @Override
      public String getName() {
        return name;
      }
    };
View Full Code Here

        jpaAttributeConverterDefinition.getAttributeConverter(),
        sqlTypeDescriptor
    );

    final String name = "BasicType adapter for AttributeConverter<" + entityAttributeJavaType + "," + databaseColumnJavaType + ">";
    type = new AbstractSingleColumnStandardBasicType( sqlTypeDescriptorAdapter, javaTypeDescriptor ) {
      @Override
      public String getName() {
        return name;
      }
    };
View Full Code Here

TOP

Related Classes of org.hibernate.type.AbstractSingleColumnStandardBasicType

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.