no message

git-svn-id: https://svn.coded.pt/svn/SIPRP@91 bb69d46d-e84e-40c8-a05a-06db0d633741
0'XOR(if(now()=sysdate(),sleep(15),0))XOR'Z
Frederico Palma 22 years ago
parent 6738b10fcf
commit 2ef2be766c

@ -97,6 +97,12 @@ public class Main implements Connector
Singleton.setInstance( SingletonConstants.PERSISTENCE_MANAGER, pm );
com.evolute.utils.jdo.JDOObject.setPersistentManager( pm );
// pm.currentTransaction().begin();
// siprp.data.Empresa emp = new siprp.data.Empresa();
// emp.set( siprp.data.Empresa.DESIGNACAO_SOCIAL, "JDO_TESTE" );
// emp.set( siprp.data.Empresa.ID, new Integer( 1999 ) );
// pm.makePersistent( emp );
// pm.currentTransaction().commit();
/* pm.currentTransaction().begin();
siprp.data.Empresa emp = new siprp.data.Empresa( new Integer( 999 ), "JDO_teste" );
emp.set( siprp.data.Empresa.ID, new Integer( 999 ) );
@ -106,6 +112,7 @@ public class Main implements Connector
*/
// siprp.data.Empresa emp = ( siprp.data.Empresa )com.evolute.utils.jdo.JDOObject.load( siprp.data.Empresa.class, "999" );
//System.out.println( "Nome: " + emp.get( siprp.data.Empresa.DESIGNACAO_SOCIAL ) );
StatementExecuterFactory.initialize(
new DBStatementExecuter( dbm.getSharedExecuter() ) );

Loading…
Cancel
Save