initial commit

This commit is contained in:
Vishwanath R
2013-12-28 18:27:13 +05:30
parent 37a039454a
commit bc55f70301
3 changed files with 68 additions and 3 deletions
@@ -87,14 +87,14 @@ public class Staff extends AbstractPersistable<Long> {
}
private Staff(final Office staffOffice, final String firstname, final String lastname, final String externalId, final String mobileNo,
final boolean isLoanOfficer, final boolean isActive) {
final boolean isLoanOfficer, final Boolean isActive) {
this.office = staffOffice;
this.firstname = StringUtils.defaultIfEmpty(firstname, null);
this.lastname = StringUtils.defaultIfEmpty(lastname, null);
this.externalId = StringUtils.defaultIfEmpty(externalId, null);
this.mobileNo = StringUtils.defaultIfEmpty(mobileNo, null);
this.loanOfficer = isLoanOfficer;
this.active = isActive;
this.active = (isActive == null) ? false : isActive;
deriveDisplayName(firstname);
}