upgrande to 7.11.0 + refactoring

This commit is contained in:
Nicolas Héron 2018-09-13 20:51:38 +02:00
commit 300ea58a2a
7 changed files with 5692 additions and 6 deletions

View file

@ -9,6 +9,12 @@
<modelVersion>4.0.0</modelVersion>
<artifactId>drools-framework-swimming-pool-model</artifactId>
<dependencies>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>

View file

@ -15,6 +15,8 @@
*/
package org.training.leisure.swimmingpool;
import com.fasterxml.jackson.annotation.JsonIgnore;
import java.math.BigDecimal;
/**
@ -30,7 +32,8 @@ public class CalculatedAttribute {
private String stringValue;
private BigDecimal bigDecimalValue;
private Integer integerValue;
@JsonIgnore
private BaseElement father;
public CalculatedAttribute() {
}
@ -83,6 +86,14 @@ public class CalculatedAttribute {
this.integerValue = integerValue;
}
public BaseElement getFather() {
return father;
}
public void setFather(BaseElement father) {
this.father = father;
}
@Override
public String toString() {
final StringBuffer sb = new StringBuffer("CalculatedAttribute{");

View file

@ -15,6 +15,8 @@
*/
package org.training.leisure.swimmingpool;
import com.fasterxml.jackson.annotation.JsonIgnore;
import java.math.BigDecimal;
@ -22,7 +24,8 @@ public class Price {
private BigDecimal amount;
private String description;
private String priceType;
@JsonIgnore
private Person person;
public Price() {
}
@ -50,6 +53,14 @@ public class Price {
this.priceType = priceType;
}
public Person getPerson() {
return person;
}
public void setPerson(Person person) {
this.person = person;
}
@Override
public String toString() {
final StringBuffer sb = new StringBuffer("Price{");