db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "João Vieira da Luz" <Joao....@ist.utl.pt>
Subject Problems with lock
Date Sat, 15 Nov 2003 21:13:53 GMT

Look to this pseudo-code:

	beginTransaction(); // odmg transaction

	A a1 = readByPk(new Integer(1)); //using Persistence Broker Api
	lock Read Object a1 //using tx 

	A a2 = new A();

	a2.setIdInternal(new Integer(1)); // idInternal is the primary

	lock write object a2	
	a2.setName("this should be in database after commit");

	commitTransaction(); //using tx

My question is why attribute name is not updated on database?


To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org

View raw message