Hi Florian,
I just got latest to check for this fix and noticed that changes have been made in this regard. Unfortunately I am now getting compile errors in the generation of domain entities as noted below:
I have a table called LaneConfig that has 2 numerics that generate BigDecimals. The all fields constructor is generated correctly and shows this:
public LaneConfig(
Integer laneConfigId,
java.math.BigDecimal XCenter,
java.math.BigDecimal widthPercent,
java.util.Date createdDate,
java.util.Date modifiedDate,
String createdBy,
String modifiedBy,
Integer lockVersion
, boolean setRelationship) {
//primary keys
setLaneConfigId (laneConfigId);
//attributes
setXCenter (XCenter);
setWidthPercent (widthPercent);
setCreatedDate (createdDate);
setModifiedDate (modifiedDate);
setCreatedBy (createdBy);
setModifiedBy (modifiedBy);
setLockVersion (lockVersion);
//parents
}
But there is a static mask function that still thinks those 2 BigDecimals are Integer type:
public static LaneConfig fullMask() {
return new LaneConfig(
integerMask__ ,
integerMask__ , <--------------Should be bigDecimalMask__
integerMask__ , <--------------Should be bigDecimalMask__
timestampMask__ ,
timestampMask__ ,
stringMask__ ,
stringMask__ ,
integerMask__ );
}
There is also a mask method generates incorrectly again assuming the fields are Integer:
public LaneConfig mask(String pattern, Object value) {
if(pattern==null || value==null) return this;
if ("laneConfigId".equals(pattern)) {
setLaneConfigId((Integer)value);
return this;
}
if ("XCenter".equals(pattern)) {
setXCenter((Integer)value); <--------------Should be BigDecimal
return this;
}
if ("widthPercent".equals(pattern)) {
setWidthPercent((Integer)value); <--------------Should be BigDecimal
return this;
}
Also, I noticed with the latest source that my pom file is getting overwritten by a generated version. Is there a way I can prevent that?
Regards,
-Greg