You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-dev@db.apache.org by th...@apache.org on 2003/07/27 12:21:14 UTC
cvs commit: db-ojb/src/java/org/apache/ojb/odmg/collections DListEntry.java DSetEntry.java
thma 2003/07/27 03:21:14
Modified: src/java/org/apache/ojb/odmg/collections DListEntry.java
DSetEntry.java
Log:
fix assignment of ids
Revision Changes Path
1.19 +3 -2 db-ojb/src/java/org/apache/ojb/odmg/collections/DListEntry.java
Index: DListEntry.java
===================================================================
RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/odmg/collections/DListEntry.java,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -r1.18 -r1.19
--- DListEntry.java 8 Apr 2003 20:19:28 -0000 1.18
+++ DListEntry.java 27 Jul 2003 10:21:13 -0000 1.19
@@ -75,8 +75,8 @@
*/
public class DListEntry implements Serializable
{
- protected int id = -1;
- protected int dlistId = -1;
+ protected int id = 0;
+ protected int dlistId = 0;
protected DListImpl m_dList;
protected int position;
protected Identity oid;
@@ -119,6 +119,7 @@
{
this.pbKey = theDlist.getPBKey();
this.m_dList = theDlist;
+ this.dlistId = theDlist.getId();
this.position = theDlist.size();
TransactionImpl tx = TxManagerFactory.instance().getTransaction();
if (tx != null)
1.7 +1 -0 db-ojb/src/java/org/apache/ojb/odmg/collections/DSetEntry.java
Index: DSetEntry.java
===================================================================
RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/odmg/collections/DSetEntry.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- DSetEntry.java 8 Apr 2003 20:19:28 -0000 1.6
+++ DSetEntry.java 27 Jul 2003 10:21:13 -0000 1.7
@@ -100,6 +100,7 @@
public DSetEntry(DSetImpl theDSet, Object theObject)
{
this.position = theDSet.size();
+ this.dlistId = theDSet.getId();
PersistenceBroker broker = PersistenceBrokerFactory.defaultPersistenceBroker();
Identity OID = new Identity(theObject,broker);
broker.close();
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org