use private visibility in constructors.
This commit is contained in:
parent
d9d482bdeb
commit
7c6a16259b
1 changed files with 6 additions and 6 deletions
|
|
@ -45,7 +45,12 @@ public class CustomerComunication extends BaseEntity{
|
|||
|
||||
private Order order;
|
||||
|
||||
public CustomerComunication() {
|
||||
protected CustomerComunication() {
|
||||
this.setComunicationDate(new Date());
|
||||
}
|
||||
|
||||
private CustomerComunication(Date deadline) {
|
||||
this.setDeadline(deadline);
|
||||
this.setComunicationDate(new Date());
|
||||
}
|
||||
|
||||
|
|
@ -53,11 +58,6 @@ public class CustomerComunication extends BaseEntity{
|
|||
return (CustomerComunication) create(new CustomerComunication());
|
||||
}
|
||||
|
||||
public CustomerComunication(Date deadline) {
|
||||
this.setDeadline(deadline);
|
||||
this.setComunicationDate(new Date());
|
||||
}
|
||||
|
||||
public static CustomerComunication createToday(Date deadline) {
|
||||
return (CustomerComunication) create(new CustomerComunication(deadline));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue