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/ShiftUserType.java
17 17

  
18 18
import org.apache.log4j.Logger;
19 19
import org.hibernate.HibernateException;
20
import org.hibernate.engine.spi.SessionImplementor;
20
import org.hibernate.engine.spi.SharedSessionContractImplementor;
21 21
import org.hibernate.type.StandardBasicTypes;
22 22
import org.hibernate.usertype.UserType;
23 23
import org.jadira.usertype.dateandtime.shared.spi.AbstractUserType;
......
66 66
	}
67 67

  
68 68
	@Override
69
	public Shift[] nullSafeGet(ResultSet rs, String[] names, SessionImplementor session, Object owner)
69
	public Shift[] nullSafeGet(ResultSet rs, String[] names, SharedSessionContractImplementor session, Object owner)
70 70
			throws HibernateException, SQLException {
71 71
        String val = (String) StandardBasicTypes.STRING.nullSafeGet(rs, names, session, owner);
72 72

  
......
100 100
	}
101 101

  
102 102
	@Override
103
	public void nullSafeSet(PreparedStatement statement, Object value, int index, SessionImplementor session)
103
	public void nullSafeSet(PreparedStatement statement, Object value, int index, SharedSessionContractImplementor session)
104 104
			throws HibernateException, SQLException {
105 105
		if (value == null) {
106 106
            StandardBasicTypes.STRING.nullSafeSet(statement, value, index, session);

Also available in: Unified diff