@Override public Object nullSafeGet(ResultSet rs,String[] names,SessionImplementor session,Object owner) throws HibernateException, SQLException {
  if (rs.getString(names[0]) == null) {
    return null;
  }
  return rs.getString(names[0]);
}

@ Override public Object nullSafeGet ( ResultSet rs , String [ ] names , SessionImplementor session , Object owner ) throws HibernateException , SQLException { if ( rs . getString ( names [ 0 ] ) == null ) { return null ; } return rs . getString ( names [ 0 ] ) ; }
retrieve an instance of the mapped class from a jdbc resultset . implementors should handle possibility of null values .
