Encontré la trampa y no está relacionada con el código.
El nullSafeGet adecuado en Hibernate UserType, como se indica en la respuesta a la que se hace referencia, es:
public void nullSafeSet(PreparedStatement st, Object value, int index, SessionImplementor session) throws HibernateException, SQLException {
if (logger.isTraceEnabled()) {
logger.trace(" nullSafeSet: " + value + ", ps: " + st + ", index: " + index);
}
try {
XMLType xmlType = null;
if (value != null) {
xmlType = XMLType.createXML(getOracleConnection(st.getConnection()), (String)value);
}
st.setObject(index, xmlType);
} catch (Exception e) {
throw new SQLException("Could not convert String to XML for storage: " + (String)value);
}
}
TL;RD :Descargue xdb6.jar (~257kb) desde el Página de controladores JDBC de Oracle 11gR2 (11.2.0.3) . Los frascos xdb más antiguos fallan silenciosamente y te entristecerán.