fixed Created (date) issue on new DatasetProfiles - assigned global
variable of ${com.fasterxml.jackson} on pom.xml
This commit is contained in:
parent
9b8d2cbf2e
commit
888f1141bc
|
@ -17,6 +17,7 @@
|
|||
<org.springframework.security.version>4.2.3.RELEASE</org.springframework.security.version>
|
||||
<com.sun.jersey.version>1.19.1</com.sun.jersey.version>
|
||||
<org.apache.tomcat.tomcat-jdbc.version>7.0.35</org.apache.tomcat.tomcat-jdbc.version>
|
||||
<com.fasterxml.jackson>2.8.4</com.fasterxml.jackson>
|
||||
|
||||
<hibernate.version>5.2.11.Final</hibernate.version>
|
||||
|
||||
|
@ -135,29 +136,29 @@
|
|||
<dependency>
|
||||
<groupId>com.fasterxml.jackson.core</groupId>
|
||||
<artifactId>jackson-annotations</artifactId>
|
||||
<version>2.8.4</version>
|
||||
<version>${com.fasterxml.jackson}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.fasterxml.jackson.core</groupId>
|
||||
<artifactId>jackson-core</artifactId>
|
||||
<version>2.8.4</version>
|
||||
<version>${com.fasterxml.jackson}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.fasterxml.jackson.core</groupId>
|
||||
<artifactId>jackson-databind</artifactId>
|
||||
<version>2.8.4</version>
|
||||
<version>${com.fasterxml.jackson}</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>com.fasterxml.jackson.datatype</groupId>
|
||||
<artifactId>jackson-datatype-hibernate5</artifactId>
|
||||
<version>2.8.4</version>
|
||||
<version>${com.fasterxml.jackson}</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>com.fasterxml.jackson.dataformat</groupId>
|
||||
<artifactId>jackson-dataformat-xml</artifactId>
|
||||
<version>2.9.0</version>
|
||||
<version>${com.fasterxml.jackson}</version>
|
||||
</dependency>
|
||||
|
||||
<!-- Json <-> XML transformations -->
|
||||
|
|
|
@ -69,7 +69,7 @@ public class DatasetProfile implements Serializable {
|
|||
|
||||
|
||||
@Column(name = "\"Created\"")
|
||||
private Date created = null;
|
||||
private Date created;
|
||||
|
||||
@Column(name = "\"Modified\"")
|
||||
private Date modified = new Date();
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
package rest.entities;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
import java.util.UUID;
|
||||
import java.util.stream.Collectors;
|
||||
|
@ -114,6 +115,9 @@ public class DatasetProfiles {
|
|||
@RequestMapping(method = RequestMethod.POST, value = { "/datasetprofile/create" }, consumes = "application/json", produces="application/json")
|
||||
public @ResponseBody ResponseEntity<Object> createDatasetProfile(@RequestBody DatasetProfile datasetProfile) {
|
||||
|
||||
datasetProfile.setCreated(new Date());
|
||||
datasetProfile.setModified(new Date());
|
||||
|
||||
DatasetProfileRuleset datasetprofileruleset = datasetProfile.getRuleset();
|
||||
DatasetProfileViewstyle datasetprofileviewstyle = datasetProfile.getViewstyle();
|
||||
|
||||
|
|
Loading…
Reference in New Issue