Package com.tcs.hrr.dao

Examples of com.tcs.hrr.dao.UserDAO


    System.out.println("After setUpBeforeClass");
  }

  @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());
  }
View Full Code Here


    System.out.println("testDelete");
  }

  @Test
  public void testFindById() {
    UserDAO ud = (UserDAO)ctx.getBean("userDaO");
    User t_User = (User)ud.findById(1);
    System.out.println("testFindById : "+t_User.getName()+"/"+t_User.getPassword());
  }
View Full Code Here

  public static void main(String[] args) {
    System.out.println("test Start");
    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

    System.out.println("testDelete");
  }

  @Test
  public void testFindById() {
    UserDAO ud = (UserDAO)ctx.getBean("userDaO");
    User t_User = (User)ud.findById(1);
    System.out.println("testFindById : "+t_User.getName()+"/"+t_User.getPassword());
  }
View Full Code Here

TOP

Related Classes of com.tcs.hrr.dao.UserDAO

Copyright © 2018 www.massapicom. 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.