no message

git-svn-id: https://svn.coded.pt/svn/SIPRP@93 bb69d46d-e84e-40c8-a05a-06db0d633741
lxbfYeaa
Luis Flores 22 years ago
parent 7140095586
commit cefd75c6f7

@ -6,6 +6,7 @@ import com.evolute.utils.*;
import com.evolute.utils.db.*;
import com.evolute.utils.db.keyretrievers.*;
import com.evolute.utils.jdbc.*;
import com.evolute.utils.jdo.*;
import com.evolute.utils.sql.*;
import com.evolute.utils.ui.*;
import com.evolute.utils.ui.window.*;
@ -103,13 +104,13 @@ public class Main implements Connector
// 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 ) );
emp.set( siprp.data.Empresa.DESIGNACAO_SOCIAL, "JDO_TESTE" );
pm.makePersistent( emp );
pm.currentTransaction().commit();
*/
// pm.currentTransaction().begin();
// 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.DESIGNACAO_SOCIAL, "JDO_TESTE" );
// pm.makePersistent( emp );
// 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 ) );

Loading…
Cancel
Save