Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>pl.solr.datamodel</groupId>
<artifactId>datamodel</artifactId>
<version>0.0.7-SNAPSHOT</version>
<version>0.0.8-SNAPSHOT</version>
<description>Automagically generated test data</description>
<url>http://solr.pl/</url>

Expand Down
6 changes: 2 additions & 4 deletions src/main/java/pl/solr/dm/DataType.java
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,8 @@ public boolean exists() {

@JsonValue
public T getCurrentValue() {
if (currentValue == null) {
currentValue = getNewValue();
}
return currentValue;
System.out.println("USING NEW VALUE");
return getNewValue();
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
public class JsonDataModelProducer extends DataModelProducer {

public String convert(ObjectDataType object) {
System.out.println("USING NEW JSON DATA MODEL PRODUCER");
ObjectMapper mapper = new ObjectMapper();
try {
return mapper.writeValueAsString(object);
Expand Down