Setting default values for fields validFrom and validTo

revert-70aa11f8
prabathabey 10 years ago
parent 536e13b0a7
commit 84bc22f9f3

@ -35,6 +35,11 @@ public class License {
private Date validTo; private Date validTo;
private String text; private String text;
public License() {
this.validFrom = new Date();
this.validFrom = new Date();
}
@XmlElement(name = "Provider", required = true) @XmlElement(name = "Provider", required = true)
public String getProvider() { public String getProvider() {
return provider; return provider;

Loading…
Cancel
Save