Package application.database

Examples of application.database.Patient.save()


        Random rand = new Random();
        put("name", String.valueOf(rand.nextInt()));
        put("surname", String.valueOf(rand.nextInt()));
      }}
      );
      patient.save();
    }
  }
 
  @Test
  public void testFindByPk() throws Exception{
View Full Code Here


 
  @Test
  public void testFindByPk() throws Exception{
    Patient cur = (new Patient()).findByPk(1);
    cur.name="lah";
    cur.save();
  }

  @Test
  public void testSave() throws Exception{
    Patient cur = new Patient();
View Full Code Here

    cur.name="loh";
    cur.surname="lohov";
    cur.patronymic="lohovich";
    cur.birth_date=Long.valueOf((new Date()).getTime()).intValue();
    cur.sex="male";
    cur.save();
  }
 
  @Test
  public void testSelectByValues() throws Exception {
    ArrayList<Patient> patients = (new Patient()).selectByValues(new HashMap<String,Object>());
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.