Setting default values for fields validFrom and validTo

This commit is contained in:
prabathabey 2015-07-30 16:56:45 +05:30
parent 536e13b0a7
commit 84bc22f9f3

View File

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