[Bprocessor-commit] model/src/net/sourceforge/bprocessor/model/xml PersistenceManager.java,1.10,1.11
Status: Pre-Alpha
Brought to you by:
henryml
|
From: Michael L. <he...@us...> - 2005-10-30 15:49:44
|
Update of /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/xml In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18841/src/net/sourceforge/bprocessor/model/xml Modified Files: PersistenceManager.java Log Message: Fixed small error with saving functional space. There are still errors.. Index: PersistenceManager.java =================================================================== RCS file: /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/xml/PersistenceManager.java,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** PersistenceManager.java 2 Oct 2005 14:36:30 -0000 1.10 --- PersistenceManager.java 30 Oct 2005 15:49:36 -0000 1.11 *************** *** 699,712 **** Set data = fs.getAttributes(); ! Iterator it = data.iterator(); ! while (it.hasNext()) { ! net.sourceforge.bprocessor.model.Attribute a = ! (net.sourceforge.bprocessor.model.Attribute)it.next(); ! Long aid = saveAttribute(bp, a); ! fsx.getAttributeref().add(aid); } - Map fsm = (Map)mapper.get(KEY_DOMAIN); fsm.put(fs.getId(), new Long(fsx.getId())); --- 699,713 ---- Set data = fs.getAttributes(); ! if (data != null) { ! Iterator it = data.iterator(); ! while (it.hasNext()) { ! net.sourceforge.bprocessor.model.Attribute a = ! (net.sourceforge.bprocessor.model.Attribute)it.next(); ! Long aid = saveAttribute(bp, a); ! fsx.getAttributeref().add(aid); ! } } Map fsm = (Map)mapper.get(KEY_DOMAIN); fsm.put(fs.getId(), new Long(fsx.getId())); |