Project

General

Profile

« Previous | Next » 

Revision 51e74107

Added by Andreas Müller almost 11 years ago

minor

View differences:

cdmlib-model/src/main/java/eu/etaxonomy/cdm/hibernate/UUIDUserType.java
21 21
import org.hibernate.engine.spi.SessionImplementor;
22 22
import org.hibernate.type.StandardBasicTypes;
23 23
import org.hibernate.usertype.UserType;
24
import org.jadira.usertype.dateandtime.shared.spi.AbstractSingleColumnUserType;
25 24
import org.jadira.usertype.dateandtime.shared.spi.AbstractUserType;
26
import org.jadira.usertype.dateandtime.shared.spi.ColumnMapper;
27 25

  
28 26
/**
29 27
 * @author a.mueller
......
91 89
//            statement.setNull(index, Types.VARCHAR); old version
92 90
            StandardBasicTypes.STRING.nullSafeSet(statement, value, index, session);
93 91
        } else { 
94
        	UUID uuid = (UUID)value;
92
         	UUID uuid = (UUID)value;
95 93
//            statement.setString(index, uuid.toString()); //old version
96 94
            StandardBasicTypes.STRING.nullSafeSet(statement, uuid.toString(), index, session);
97 95
        }

Also available in: Unified diff