Package org.crank.crud.model

Examples of org.crank.crud.model.Department


    address.setZipCode("90210");
    return address;
  }
 
  public Department persistDepartments(GenericDao<Department, Long> deptDao) {
    Department dep = new Department();
    dep.setName("Gizmot");
    deptDao.persist(dep);
    departments.add(dep);
    dep = new Department();
    dep.setName("Bistor");
    deptDao.persist(dep);
    departments.add(dep);
    dep = new Department();
    dep.setName("Zible");
    deptDao.persist(dep);
    departments.add(dep);
    return deptDao.read(dep.getId());
  }
View Full Code Here

TOP

Related Classes of org.crank.crud.model.Department

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.