Package examples.entity

Examples of examples.entity.Employee


public class ClientDao {
  public static void main(String args[]) {
    BeanFactory factory = new ClassPathXmlApplicationContext("applicationContext.xml");
    JeecgDemoDao employeeDao = (JeecgDemoDao) factory.getBean("jeecgDemoDao");
    System.out.println("--------------count------------------"+employeeDao.getCount());
    Employee employee = new Employee();
    employee.setName("张开忠");
    //employeeDao.getCount();
   
   
   
    //------------------------------------------------------------------
View Full Code Here


 
  @Test
  public void testInsert() {
    logger.info("--------testInsert--------------------------------------------------------------");

    Employee employee = new Employee();
    employee.setId(new Integer(maxNum+1).toString());
    employee.setName("scott");
    employee.setBirthday(new Date());
    employee.setAge(20);
      employeeDao.insert(employee);
  }
View Full Code Here

  //@Test
  public void testUpdate() {
    logger.info("--------testUpdate--------------------------------------------------------------");

    Employee employee = new Employee();
    employee.setId("2");
    employee.setName("张代浩的世界1");
    employee.setBirthday(new Date());
    int num = employeeDao.update(employee);
    logger.info("------update---count---"+num);
  }
View Full Code Here

    logger.info(mp.get("salary"));
  }

  //@Test
  public void testGetEntity() {
    Employee employee = employeeDao.getEmployee("001");
    logger.info("testGetEntity --" +employee.getName());
  }
View Full Code Here

  }

  //@Test
  public void testListAll() {
    logger.info("--------testListAll--------------------------------------------------------------");
    Employee employee = new Employee();
    List<Map> list =  employeeDao.getAllEmployees(employee);
    for(Map mp:list){
      logger.info(mp.get("id"));
      logger.info(mp.get("name"));
      logger.info(mp.get("empno"));
View Full Code Here

TOP

Related Classes of examples.entity.Employee

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.