|
|
|
@ -6,6 +6,7 @@ import com.evolute.utils.*;
|
|
|
|
import com.evolute.utils.db.*;
|
|
|
|
import com.evolute.utils.db.*;
|
|
|
|
import com.evolute.utils.db.keyretrievers.*;
|
|
|
|
import com.evolute.utils.db.keyretrievers.*;
|
|
|
|
import com.evolute.utils.jdbc.*;
|
|
|
|
import com.evolute.utils.jdbc.*;
|
|
|
|
|
|
|
|
import com.evolute.utils.jdo.*;
|
|
|
|
import com.evolute.utils.sql.*;
|
|
|
|
import com.evolute.utils.sql.*;
|
|
|
|
import com.evolute.utils.ui.*;
|
|
|
|
import com.evolute.utils.ui.*;
|
|
|
|
import com.evolute.utils.ui.window.*;
|
|
|
|
import com.evolute.utils.ui.window.*;
|
|
|
|
@ -103,13 +104,13 @@ public class Main implements Connector
|
|
|
|
// emp.set( siprp.data.Empresa.ID, new Integer( 1999 ) );
|
|
|
|
// emp.set( siprp.data.Empresa.ID, new Integer( 1999 ) );
|
|
|
|
// pm.makePersistent( emp );
|
|
|
|
// pm.makePersistent( emp );
|
|
|
|
// pm.currentTransaction().commit();
|
|
|
|
// pm.currentTransaction().commit();
|
|
|
|
/* pm.currentTransaction().begin();
|
|
|
|
// pm.currentTransaction().begin();
|
|
|
|
siprp.data.Empresa emp = new siprp.data.Empresa( new Integer( 999 ), "JDO_teste" );
|
|
|
|
// siprp.data.Empresa emp = new siprp.data.Empresa( null, "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" );
|
|
|
|
// 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 ) );
|
|
|
|
//System.out.println( "Nome: " + emp.get( siprp.data.Empresa.DESIGNACAO_SOCIAL ) );
|
|
|
|
|
|
|
|
|
|
|
|
|