use private visibility in constructors.

This commit is contained in:
Susana Montes Pedreira 2011-11-15 09:52:29 +01:00
parent d9d482bdeb
commit 7c6a16259b

View file

@ -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));
}