This one time, at band camp, Guy Di Fulvio said:
GDF>So let's forget about the long transaction. But could you explain me why
GDF>the following code (part of the test I sent) is not working?
GDF>
GDF>_db = getDatabase();
GDF>_db.setAutoStore(false);
GDF>_db.begin();
GDF>
GDF>WClientJDO client =
GDF>(WClientJDO)_db.load(WClientJDO.class,new
GDF>BigDecimal(1),Database.ReadOnly);
GDF>client.setName("Test Client 2");
GDF>
GDF>_db.commit();
GDF>_db.close();
GDF>
GDF>WApplicationJDO application = new WApplicationJDO();
GDF>application.setName("Test Application 1");
GDF>application.setEmail("[EMAIL PROTECTED] 1");
GDF>application.setMailServer("server.bbb.net 1");
GDF>application.setWeb("localhost:8080 1");
GDF>application.setJdoClient(client);
GDF>
GDF>_db = getDatabase();
GDF>_db.setAutoStore(false);
GDF>_db.begin();
GDF>
GDF>_db.create(application);
GDF>_db.commit();
GDF>_db.close();
I'm not sure what you mean be not working. Please provide more detail.
Bruce
--
perl -e 'print unpack("u30","<0G)U8V4\@4VYY9&5R\"F9E<G)E=\$\!F<FEI+F-O;0\`\`");'
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev