| | |
| | | import java.util.List;
|
| | |
|
| | | public class EquipmentExample {
|
| | | private static String tableName = "equipment.";
|
| | | protected String orderByClause;
|
| | |
|
| | | protected boolean distinct;
|
| | |
| | | if (condition == null) {
|
| | | throw new RuntimeException("Value for condition cannot be null");
|
| | | }
|
| | | criteria.add(new Criterion(condition));
|
| | | criteria.add(new Criterion(tableName+condition));
|
| | | }
|
| | |
|
| | | protected void addCriterion(String condition, Object value, String property) {
|
| | | if (value == null) {
|
| | | throw new RuntimeException("Value for " + property + " cannot be null");
|
| | | }
|
| | | criteria.add(new Criterion(condition, value));
|
| | | criteria.add(new Criterion(tableName+condition, value));
|
| | | }
|
| | |
|
| | | protected void addCriterion(String condition, Object value1, Object value2, String property) {
|
| | | if (value1 == null || value2 == null) {
|
| | | throw new RuntimeException("Between values for " + property + " cannot be null");
|
| | | }
|
| | | criteria.add(new Criterion(condition, value1, value2));
|
| | | criteria.add(new Criterion(tableName+condition, value1, value2));
|
| | | }
|
| | |
|
| | | public Criteria andIdIsNull() {
|