Compare commits
No commits in common. "b0bf103195703510fd46d865cf615678268a57ce" and "218fa3be2e35e6c7108c1aa8ef6aa37dffde36a8" have entirely different histories.
b0bf103195
...
218fa3be2e
2
pom.xml
2
pom.xml
@ -3,7 +3,7 @@
|
|||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>kangaroo-and-rabbit</groupId>
|
<groupId>kangaroo-and-rabbit</groupId>
|
||||||
<artifactId>archidata</artifactId>
|
<artifactId>archidata</artifactId>
|
||||||
<version>0.23.2</version>
|
<version>0.23.0</version>
|
||||||
<properties>
|
<properties>
|
||||||
<java.version>21</java.version>
|
<java.version>21</java.version>
|
||||||
<maven.compiler.version>3.1</maven.compiler.version>
|
<maven.compiler.version>3.1</maven.compiler.version>
|
||||||
|
@ -289,32 +289,28 @@ public class TsClassElement {
|
|||||||
|| clazz == long.class || clazz == Long.class || clazz == float.class || clazz == Float.class
|
|| clazz == long.class || clazz == Long.class || clazz == float.class || clazz == Float.class
|
||||||
|| clazz == double.class || clazz == Double.class) {
|
|| clazz == double.class || clazz == Double.class) {
|
||||||
if (field.min() != null) {
|
if (field.min() != null) {
|
||||||
builder.append(".gte(");
|
builder.append(".min(");
|
||||||
builder.append(field.min().value());
|
builder.append(field.min().value());
|
||||||
builder.append(")");
|
builder.append(")");
|
||||||
}
|
}
|
||||||
if (field.max() != null) {
|
if (field.max() != null) {
|
||||||
builder.append(".lte(");
|
builder.append(".max(");
|
||||||
builder.append(field.max().value());
|
builder.append(field.max().value());
|
||||||
builder.append(")");
|
builder.append(")");
|
||||||
}
|
}
|
||||||
if (field.decimalMax() != null) {
|
if (field.decimalMax() != null) {
|
||||||
if (field.decimalMax().inclusive()) {
|
builder.append(".max(");
|
||||||
builder.append(".lte(");
|
|
||||||
} else {
|
|
||||||
builder.append(".lt(");
|
|
||||||
}
|
|
||||||
builder.append(field.decimalMax().value());
|
builder.append(field.decimalMax().value());
|
||||||
builder.append(")");
|
builder.append(", { inclusive: ");
|
||||||
|
builder.append(field.decimalMax().inclusive() ? "true" : "false");
|
||||||
|
builder.append("})");
|
||||||
}
|
}
|
||||||
if (field.decimalMin() != null) {
|
if (field.decimalMin() != null) {
|
||||||
if (field.decimalMin().inclusive()) {
|
builder.append(".min(");
|
||||||
builder.append(".gte(");
|
|
||||||
} else {
|
|
||||||
builder.append(".gt(");
|
|
||||||
}
|
|
||||||
builder.append(field.decimalMin().value());
|
builder.append(field.decimalMin().value());
|
||||||
builder.append(")");
|
builder.append(", { inclusive: ");
|
||||||
|
builder.append(field.decimalMin().inclusive() ? "true" : "false");
|
||||||
|
builder.append("})");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return builder.toString();
|
return builder.toString();
|
||||||
|
@ -1 +1 @@
|
|||||||
0.23.2
|
0.23.0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user