Package com.tcs.hrr.dao

Examples of com.tcs.hrr.dao.UserDAO.save()


  @Test
  public void testSave() {
    UserDAO ud = (UserDAO)ctx.getBean("userDaO");
    User t_User = new User("test2","test2");
    ud.save(t_User);
    System.out.println("testSave getIdUser="+t_User.getUserId());
  }

  @Test
  public void testDelete() {
View Full Code Here


    ApplicationContext ctx = new ClassPathXmlApplicationContext("applicationContext-dao.xml");

    System.out.println("Start to insert ...");
    UserDAO ud = (UserDAO)ctx.getBean("userDAO");
    User t_User = new User("User","Password");
    ud.save(t_User);
    System.out.println("test End");
  }

}
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.