aboutsummaryrefslogtreecommitdiffstats
path: root/src/test/java/com/iciql/test/models/ProductAnnotationOnly.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/java/com/iciql/test/models/ProductAnnotationOnly.java')
-rw-r--r--src/test/java/com/iciql/test/models/ProductAnnotationOnly.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/test/java/com/iciql/test/models/ProductAnnotationOnly.java b/src/test/java/com/iciql/test/models/ProductAnnotationOnly.java
index 1f6b4e2..ea5856b 100644
--- a/src/test/java/com/iciql/test/models/ProductAnnotationOnly.java
+++ b/src/test/java/com/iciql/test/models/ProductAnnotationOnly.java
@@ -30,13 +30,13 @@ import com.iciql.Iciql.IndexType;
* A table containing product data.
*/
-@IQTable(name = "AnnotatedProduct", primaryKey = "id")
+@IQTable(name = "AnnotatedProduct")
@IQIndexes({ @IQIndex({ "name", "cat" }), @IQIndex(name = "nameidx", type = IndexType.HASH, value = "name") })
public class ProductAnnotationOnly {
public String unmappedField;
- @IQColumn(name = "id", autoIncrement = true)
+ @IQColumn(name = "id", autoIncrement = true, primaryKey = true)
public Long productId;
@IQColumn(name = "cat", length = 15, trim = true)
@@ -87,6 +87,7 @@ public class ProductAnnotationOnly {
return Arrays.asList(list);
}
+ @Override
public String toString() {
return productName + ": " + unitsInStock;
}