Patches item #424534, was updated on 2001-05-16 06:50 You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=376687&aid=424534&group_id=22866 Category: JBossCMP Group: v2.2 (stable) Status: Open Resolution: None Priority: 5 Submitted By: Torben J�ger (tjaeger) Assigned to: Nobody/Anonymous (nobody) Summary: nested CMP-Fields of SQL-Type Image Initial Comment: We got problems getting nested fields of type java.util.Vector out of database (Load failed - Excpetion). Putting them into it was no problem. The wrapper method of JDBCCommand.getResultObject(...) only returned rs.getObject(idx) in case of a nested field. ____________________ /** * Wrapper around getResultObject(ResultSet rs, int idx, Class destination). */ protected Object getResultObject(ResultSet rs, int idx, CMPFieldMetaData cmpField) throws SQLException { if (!cmpField.isNested()) { // do it as before return getResultObject(rs, idx, cmpField.getField().getType()); } // Assuming no one will ever use BLOPS in composite objects. // TODO Should be tested for BLOPability return rs.getObject(idx); } ____________________ Always returning the original JDBCCommand.getResultObject(...) fixed our problem. ____________________ /** * Wrapper around getResultObject(ResultSet rs, int idx, Class destination). */ protected Object getResultObject(ResultSet rs, int idx, CMPFieldMetaData cmpField) throws SQLException { return getResultObject(rs, idx, cmpField.getFieldType()); } ____________________ Torben J�ger Orientation in Objects GmbH http://www.oio.de << life is short - code hard ---------------------------------------------------------------------- You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=376687&aid=424534&group_id=22866 _______________________________________________ Jboss-development mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-development
