import com.iciql.Iciql.IQColumn;
import com.iciql.Iciql.IQContraintUnique;
+import com.iciql.Iciql.IQIndex;
import com.iciql.Iciql.IQTable;
+import com.iciql.Iciql.IndexType;
/**
* A table containing category data.
*/
@IQTable(name = "AnnotatedCategory", primaryKey = "id")
-// @IQIndex(value = "categ", type=IndexType.UNIQUE)
+@IQIndex(value = "categ", type=IndexType.UNIQUE)
@IQContraintUnique(uniqueColumns = { "categ" })
public class CategoryAnnotationOnly {
}
public static List<CategoryAnnotationOnly> getList() {
- CategoryAnnotationOnly[] list = {
+ CategoryAnnotationOnly[] list = {
create(1, "Beverages"),
create(2, "Condiments"),
create(3, "Produce"),
return Arrays.asList(list);
}
+ @Override
public String toString() {
return category;
}