Project

General

Profile

« Previous | Next » 

Revision f1a25720

Added by Katja Luther over 6 years ago

  • ID f1a25720755daa96e8838a617a660dfced7b9f31
  • Parent 23e50194

first implementation for change from joda time to java8 time

View differences:

cdmlib-model/src/main/java/eu/etaxonomy/cdm/hibernate/EnumUserType.java
18 18

  
19 19
import org.apache.log4j.Logger;
20 20
import org.hibernate.HibernateException;
21
import org.hibernate.engine.spi.SessionImplementor;
21
import org.hibernate.engine.spi.SharedSessionContractImplementor;
22 22
import org.hibernate.type.StandardBasicTypes;
23 23
import org.hibernate.usertype.ParameterizedType;
24 24
import org.hibernate.usertype.UserType;
......
80 80
	}
81 81

  
82 82
	@Override
83
	public IKeyTerm nullSafeGet(ResultSet rs, String[] names, SessionImplementor session, Object owner)
83
	public IKeyTerm nullSafeGet(ResultSet rs, String[] names, SharedSessionContractImplementor session, Object owner)
84 84
			throws HibernateException, SQLException {
85 85
        String val = (String) StandardBasicTypes.STRING.nullSafeGet(rs, names, session, owner);
86 86

  
......
124 124
	}
125 125

  
126 126
	@Override
127
	public void nullSafeSet(PreparedStatement statement, Object value, int index, SessionImplementor session)
127
	public void nullSafeSet(PreparedStatement statement, Object value, int index, SharedSessionContractImplementor session)
128 128
			throws HibernateException, SQLException {
129 129
		if (value == null) {
130 130
            StandardBasicTypes.STRING.nullSafeSet(statement, value, index, session);

Also available in: Unified diff