From: <one...@us...> - 2002-11-22 00:27:11
|
Update of /cvsroot/hibernate/Hibernate/cirrus/hibernate/map In directory sc8-pr-cvs1:/tmp/cvs-serv22494/hibernate/map Modified Files: Component.java Value.java Log Message: fixed a couple of bugs in multitable mappings fixed an npe in CalendarType Index: Component.java =================================================================== RCS file: /cvsroot/hibernate/Hibernate/cirrus/hibernate/map/Component.java,v retrieving revision 1.33 retrieving revision 1.34 diff -C2 -d -r1.33 -r1.34 *** Component.java 27 Oct 2002 18:30:56 -0000 1.33 --- Component.java 22 Nov 2002 00:27:08 -0000 1.34 *************** *** 54,57 **** --- 54,58 ---- public Component(Node node, Class reflectedClass, String path, PersistentClass owner, boolean isNullable, Table table, Root root) throws MappingException { super(); + setTable(table); Node classNode = node.getAttributes().getNamedItem("class"); String className; Index: Value.java =================================================================== RCS file: /cvsroot/hibernate/Hibernate/cirrus/hibernate/map/Value.java,v retrieving revision 1.40 retrieving revision 1.41 diff -C2 -d -r1.40 -r1.41 *** Value.java 31 Oct 2002 14:00:28 -0000 1.40 --- Value.java 22 Nov 2002 00:27:08 -0000 1.41 *************** *** 38,42 **** return type; } ! public void setType(Type type) { this.type = type; Iterator iter = getColumnIterator(); --- 38,42 ---- return type; } ! void setType(Type type) { this.type = type; Iterator iter = getColumnIterator(); *************** *** 47,50 **** --- 47,53 ---- col.setTypeIndex(count++); } + } + void setTable(Table table) { + this.table = table; } |