-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
33 changed files
with
584 additions
and
240 deletions.
There are no files selected for viewing
41 changes: 41 additions & 0 deletions
41
...tion/pocwithidentificationcounter/employeemanagement/common/api/CompositeEmployeeKey.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
package com.devonfw.application.pocwithidentificationcounter.employeemanagement.common.api; | ||
|
||
|
||
public class CompositeEmployeeKey{ | ||
|
||
private String companyId; | ||
private String employeeId; | ||
|
||
|
||
public CompositeEmployeeKey() { | ||
} | ||
|
||
public CompositeEmployeeKey(String mixed) { | ||
super(); | ||
String[] stringVar = mixed.split(","); | ||
this.companyId = stringVar[0]; | ||
this.employeeId = stringVar[1]; | ||
} | ||
|
||
public CompositeEmployeeKey(String companyId, String employeeId) { | ||
super(); | ||
this.companyId = companyId; | ||
this.employeeId = employeeId; | ||
} | ||
|
||
public String getCompanyId() { | ||
return companyId; | ||
} | ||
|
||
public void setCompanyId(String companyId) { | ||
this.companyId = companyId; | ||
} | ||
|
||
public String getEmployeeId() { | ||
return employeeId; | ||
} | ||
|
||
public void setEmployeeId(String employeeId) { | ||
this.employeeId = employeeId; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
...application/pocwithidentificationcounter/employeemanagement/logic/api/to/EmployeeCto.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
package com.devonfw.application.pocwithidentificationcounter.employeemanagement.logic.api.to; | ||
|
||
import java.util.List; | ||
|
||
import com.devonfw.application.pocwithidentificationcounter.phonemanagement.logic.api.to.PhoneEto; | ||
import com.devonfw.module.basic.common.api.to.AbstractCto; | ||
|
||
/** | ||
* Composite transport object of Employee | ||
*/ | ||
public class EmployeeCto extends AbstractCto { | ||
|
||
private static final long serialVersionUID = 1L; | ||
|
||
private EmployeeEto employee; | ||
|
||
private List<PhoneEto> phones; | ||
|
||
public EmployeeEto getEmployee() { | ||
return employee; | ||
} | ||
|
||
public void setEmployee(EmployeeEto employee) { | ||
this.employee = employee; | ||
} | ||
|
||
public List<PhoneEto> getPhones() { | ||
return phones; | ||
} | ||
|
||
public void setPhones(List<PhoneEto> phones) { | ||
this.phones = phones; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.