Project

General

Profile

« Previous | Next » 

Revision 7ab5b913

Added by Andreas Müller over 3 years ago

cleanup

View differences:

cdmlib-model/src/main/java/eu/etaxonomy/cdm/hibernate/URIUserType.java
65 65
	@Override
66 66
	public void nullSafeSet(PreparedStatement statement, Object value, int index, SessionImplementor session)
67 67
			throws HibernateException, SQLException {
68
		if (value == null) {
69
          StandardBasicTypes.STRING.nullSafeSet(statement, value, index, session);
70
      } else {
71
    	  URI uri = (URI) value;
72
          StandardBasicTypes.STRING.nullSafeSet(statement, uri.toString(), index, session);
73
      }
74
    }
68
	    if (value == null) {
69
		    StandardBasicTypes.STRING.nullSafeSet(statement, value, index, session);
70
        } else {
71
            URI uri = (URI) value;
72
            StandardBasicTypes.STRING.nullSafeSet(statement, uri.toString(), index, session);
73
        }
74
	}
75 75

  
76 76
    /**
77 77
     * @param value value being copied

Also available in: Unified diff