|
|
|
|
@ -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() ) );
|
|
|
|
|
|