1 14 package org.compiere.model; 15 16 import java.sql.ResultSet ; 17 import java.util.Properties ; 18 19 import org.compiere.Compiere; 20 import org.compiere.util.*; 21 22 28 public class MTest extends X_Test 29 { 30 35 public MTest(Properties ctx, int Test_ID) 36 { 37 super (ctx, Test_ID); 38 } 40 45 public MTest(Properties ctx, ResultSet rs) 46 { 47 super (ctx, rs); 48 } 50 54 public static void main(String [] args) 55 { 56 Compiere.startupClient(); 57 MTest t1 = new MTest (Env.getCtx(), 0); 58 t1.setName("Test1"); 59 System.out.println("->" + t1.getCharacterData() + "<-"); 60 t1.save(); 61 t1.setCharacterData("Long Text JJ"); 62 t1.save(); 63 int Test_ID = t1.getTest_ID(); 64 MTest t2 = new MTest (Env.getCtx(), Test_ID); 66 System.out.println("->" + t2.getCharacterData() + "<-"); 67 } 69 } | Popular Tags |