- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
@Transactional(readOnly = true)
public Employee getByUsername(String username) throws SecurityException {
Employee employee = employeeDaoDb.getByUsername(username);
if (employee != null) {
return employee;
}
employee = employeeDaoLdap.getByUsername(username);
if (employee != null) {
if (employee.getFirstName() == null && employee.getFamilyName() == null) {
employee.setFirstName(employee.getUsername());
}
return employeeDaoDb.save(employee);
}
return null;
}
Lure Of Chaos 08.02.2012 22:22 # 0
Grig 08.02.2012 22:41 # 0
С уважением и любовью,
Ваш К. О.
absolut 09.02.2012 11:34 # 0
guest8 09.04.2019 12:38 # −999