aboutsummaryrefslogtreecommitdiffstats
path: root/tests/com/iciql/test/models/Order.java
diff options
context:
space:
mode:
Diffstat (limited to 'tests/com/iciql/test/models/Order.java')
-rw-r--r--tests/com/iciql/test/models/Order.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/com/iciql/test/models/Order.java b/tests/com/iciql/test/models/Order.java
index f0cf7f3..e123d09 100644
--- a/tests/com/iciql/test/models/Order.java
+++ b/tests/com/iciql/test/models/Order.java
@@ -17,7 +17,9 @@
package com.iciql.test.models;
+import static com.iciql.Define.length;
import static com.iciql.Define.primaryKey;
+import static com.iciql.Define.scale;
import static com.iciql.Define.tableName;
import java.math.BigDecimal;
@@ -25,6 +27,7 @@ import java.util.Arrays;
import java.util.Date;
import java.util.List;
+
import com.iciql.Iciql;
/**
@@ -34,7 +37,7 @@ import com.iciql.Iciql;
public class Order implements Iciql {
public String customerId;
public Integer orderId;
- public Date orderDate;
+ public Date orderDate;
public BigDecimal total;
public Order(String customerId, Integer orderId, String total, String orderDate) {
@@ -50,6 +53,9 @@ public class Order implements Iciql {
public void defineIQ() {
tableName("Orders");
+ length(customerId, 25);
+ length(total, 10);
+ scale(total, 2);
primaryKey(customerId, orderId);
}