aboutsummaryrefslogtreecommitdiffstats
path: root/tests/com/iciql/test/models/MultipleBoolsModel.java
blob: 7bc429cc7917219299024769af8b21392bf10fcb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
package com.iciql.test.models;

import java.util.Arrays;
import java.util.List;

import com.iciql.Iciql.IQColumn;
import com.iciql.Iciql.IQTable;

/**
 * Model class to test the runtime exception of too many primitive boolean
 * fields in the model.
 * 
 * @author James Moger
 * 
 */
@IQTable
public class MultipleBoolsModel {

	@IQColumn(autoIncrement = true, primaryKey = true)
	public int id;

	@IQColumn
	public boolean a;

	@IQColumn
	public boolean b;

	public MultipleBoolsModel() {
	}

	public MultipleBoolsModel(boolean a, boolean b) {
		this.a = a;
		this.b = b;
	}

	public static List<MultipleBoolsModel> getList() {
		return Arrays.asList(new MultipleBoolsModel(true, true), new MultipleBoolsModel(true, false),
				new MultipleBoolsModel(true, false), new MultipleBoolsModel(false, false));
	}
}