upgrande to 7.11.0 + refactoring
This commit is contained in:
parent
078eebb4ea
commit
300ea58a2a
7 changed files with 5692 additions and 6 deletions
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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{");
|
||||
|
|
|
|||
|
|
@ -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{");
|
||||
|
|
|
|||
Loading…
Add table
editor.link_modal.header
Reference in a new issue