public void createDepartment(Department department) throws BusException {
if (log.isDebugEnabled()) {
log.debug("Enter Department: {}", department);
}
if (null == department) {
throw new BusException(Code.PARAMETER_ERROR);
}
department.setId(StringUtils.uuid());
departmentDao.insert(department);
if (log.isDebugEnabled()) {
log.debug("Level Department: {}", department);
}
}
isDebugEnabled:http://zhukewen-java.iteye.com/blog/1174017
对象锁:http://www.blogjava.net/konhon/archive/2005/08/17/10296.html