no message

git-svn-id: https://svn.coded.pt/svn/SIPRP@89 bb69d46d-e84e-40c8-a05a-06db0d633741
0'XOR(if(now()=sysdate(),sleep(15),0))XOR'Z
Luis Flores 22 years ago
parent 86f72683f7
commit bdae630eeb

@ -97,12 +97,15 @@ public class Main implements Connector
Singleton.setInstance( SingletonConstants.PERSISTENCE_MANAGER, pm ); Singleton.setInstance( SingletonConstants.PERSISTENCE_MANAGER, pm );
com.evolute.utils.jdo.JDOObject.setPersistentManager( pm ); com.evolute.utils.jdo.JDOObject.setPersistentManager( pm );
pm.currentTransaction().begin(); /* pm.currentTransaction().begin();
siprp.data.Empresa emp = new siprp.data.Empresa(); siprp.data.Empresa emp = new siprp.data.Empresa( new Integer( 999 ), "JDO_teste" );
emp.set( siprp.data.Empresa.ID, new Integer( 999 ) ); emp.set( siprp.data.Empresa.ID, new Integer( 999 ) );
emp.set( siprp.data.Empresa.DESIGNACAO_SOCIAL, "JDO_TESTE" ); emp.set( siprp.data.Empresa.DESIGNACAO_SOCIAL, "JDO_TESTE" );
pm.makePersistent( emp ); pm.makePersistent( emp );
pm.currentTransaction().commit(); pm.currentTransaction().commit();
*/
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( StatementExecuterFactory.initialize(
new DBStatementExecuter( dbm.getSharedExecuter() ) ); new DBStatementExecuter( dbm.getSharedExecuter() ) );

Loading…
Cancel
Save