Commit 8f078bd9 authored by Junling Bu's avatar Junling Bu
Browse files

update[litemall-db]: 更新mybatis generator插件到1.2.3。

1. 设置逻辑删除插件
2. 设置乐观锁插件
parent d006f89f
......@@ -4,6 +4,44 @@ import java.time.LocalDateTime;
import java.util.Arrays;
public class LitemallComment {
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table litemall_comment
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public static final Boolean NOT_DELETED = false;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table litemall_comment
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
@Deprecated
public static final Boolean DEL_FLAG_ON = false;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table litemall_comment
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public static final Boolean IS_DELETED = true;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table litemall_comment
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
@Deprecated
public static final Boolean DEL_FLAG_OFF = true;
/**
*
* This field was generated by MyBatis Generator.
......@@ -413,6 +451,17 @@ public class LitemallComment {
return result;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_comment
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public void andLogicalDeleted(boolean deleted) {
setDeleted(deleted ? IS_DELETED : NOT_DELETED);
}
/**
* This enum was generated by MyBatis Generator.
* This enum corresponds to the database table litemall_comment
......@@ -421,16 +470,16 @@ public class LitemallComment {
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public enum Column {
id("id"),
typeId("type_id"),
valueId("value_id"),
content("content"),
userId("user_id"),
hasPicture("has_picture"),
picUrls("pic_urls"),
star("star"),
addTime("add_time"),
deleted("deleted");
id("id", "id", "INTEGER"),
typeId("type_id", "typeId", "TINYINT"),
valueId("value_id", "valueId", "INTEGER"),
content("content", "content", "VARCHAR"),
userId("user_id", "userId", "INTEGER"),
hasPicture("has_picture", "hasPicture", "BIT"),
picUrls("pic_urls", "picUrls", "CHAR"),
star("star", "star", "SMALLINT"),
addTime("add_time", "addTime", "TIMESTAMP"),
deleted("deleted", "deleted", "BIT");
/**
* This field was generated by MyBatis Generator.
......@@ -441,6 +490,24 @@ public class LitemallComment {
*/
private final String column;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table litemall_comment
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private final String javaProperty;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table litemall_comment
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private final String jdbcType;
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_comment
......@@ -470,8 +537,32 @@ public class LitemallComment {
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
Column(String column) {
public String getJavaProperty() {
return this.javaProperty;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_comment
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public String getJdbcType() {
return this.jdbcType;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_comment
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
Column(String column, String javaProperty, String jdbcType) {
this.column = column;
this.javaProperty = javaProperty;
this.jdbcType = jdbcType;
}
/**
......
......@@ -116,13 +116,11 @@ public class LitemallCommentExample {
* This method corresponds to the database table litemall_comment
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
public LitemallCommentExample orderBy(String orderByClause) {
this.setOrderByClause(orderByClause);
return this;
}
/**
......@@ -130,10 +128,18 @@ public class LitemallCommentExample {
* This method corresponds to the database table litemall_comment
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria(this);
return criteria;
public LitemallCommentExample orderBy(String ... orderByClauses) {
StringBuffer sb = new StringBuffer();
for (int i = 0; i < orderByClauses.length; i++) {
sb.append(orderByClauses[i]);
if (i < orderByClauses.length - 1) {
sb.append(" , ");
}
}
this.setOrderByClause(sb.toString());
return this;
}
/**
......@@ -142,10 +148,12 @@ public class LitemallCommentExample {
*
* @mbg.generated
*/
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
/**
......@@ -153,11 +161,10 @@ public class LitemallCommentExample {
* This method corresponds to the database table litemall_comment
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public LitemallCommentExample orderBy(String orderByClause) {
this.setOrderByClause(orderByClause);
return this;
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria(this);
return criteria;
}
/**
......@@ -165,18 +172,11 @@ public class LitemallCommentExample {
* This method corresponds to the database table litemall_comment
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public LitemallCommentExample orderBy(String ... orderByClauses) {
StringBuffer sb = new StringBuffer();
for (int i = 0; i < orderByClauses.length; i++) {
sb.append(orderByClauses[i]);
if (i < orderByClauses.length - 1) {
sb.append(" , ");
}
}
this.setOrderByClause(sb.toString());
return this;
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
/**
......@@ -934,6 +934,29 @@ public class LitemallCommentExample {
return this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_comment
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andLogicalDeleted(boolean deleted) {
return deleted ? andDeletedEqualTo(LitemallComment.IS_DELETED) : andDeletedNotEqualTo(LitemallComment.IS_DELETED);
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_comment
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
@Deprecated
public Criteria andDeleted(boolean deleted) {
return deleted ? andDeletedEqualTo(LitemallComment.IS_DELETED) : andDeletedNotEqualTo(LitemallComment.IS_DELETED);
}
/**
* This interface was generated by MyBatis Generator.
* This interface corresponds to the database table litemall_comment
......
......@@ -4,6 +4,44 @@ import java.math.BigDecimal;
import java.time.LocalDateTime;
public class LitemallCoupon {
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table litemall_coupon
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public static final Boolean NOT_DELETED = false;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table litemall_coupon
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
@Deprecated
public static final Boolean DEL_FLAG_ON = false;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table litemall_coupon
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public static final Boolean IS_DELETED = true;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table litemall_coupon
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
@Deprecated
public static final Boolean DEL_FLAG_OFF = true;
/**
*
* This field was generated by MyBatis Generator.
......@@ -521,6 +559,17 @@ public class LitemallCoupon {
return result;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_coupon
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public void andLogicalDeleted(boolean deleted) {
setDeleted(deleted ? IS_DELETED : NOT_DELETED);
}
/**
* This enum was generated by MyBatis Generator.
* This enum corresponds to the database table litemall_coupon
......@@ -529,19 +578,19 @@ public class LitemallCoupon {
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public enum Column {
id("id"),
name("name"),
typeMoney("type_money"),
sendType("send_type"),
minAmount("min_amount"),
maxAmount("max_amount"),
minGoodsAmount("min_goods_amount"),
sendStart("send_start"),
sendEnd("send_end"),
useStart("use_start"),
useEnd("use_end"),
addTime("add_time"),
deleted("deleted");
id("id", "id", "INTEGER"),
name("name", "name", "VARCHAR"),
typeMoney("type_money", "typeMoney", "DECIMAL"),
sendType("send_type", "sendType", "TINYINT"),
minAmount("min_amount", "minAmount", "DECIMAL"),
maxAmount("max_amount", "maxAmount", "DECIMAL"),
minGoodsAmount("min_goods_amount", "minGoodsAmount", "DECIMAL"),
sendStart("send_start", "sendStart", "TIMESTAMP"),
sendEnd("send_end", "sendEnd", "TIMESTAMP"),
useStart("use_start", "useStart", "TIMESTAMP"),
useEnd("use_end", "useEnd", "TIMESTAMP"),
addTime("add_time", "addTime", "TIMESTAMP"),
deleted("deleted", "deleted", "BIT");
/**
* This field was generated by MyBatis Generator.
......@@ -552,6 +601,24 @@ public class LitemallCoupon {
*/
private final String column;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table litemall_coupon
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private final String javaProperty;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table litemall_coupon
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private final String jdbcType;
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_coupon
......@@ -581,8 +648,32 @@ public class LitemallCoupon {
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
Column(String column) {
public String getJavaProperty() {
return this.javaProperty;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_coupon
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public String getJdbcType() {
return this.jdbcType;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_coupon
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
Column(String column, String javaProperty, String jdbcType) {
this.column = column;
this.javaProperty = javaProperty;
this.jdbcType = jdbcType;
}
/**
......
......@@ -117,13 +117,11 @@ public class LitemallCouponExample {
* This method corresponds to the database table litemall_coupon
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
public LitemallCouponExample orderBy(String orderByClause) {
this.setOrderByClause(orderByClause);
return this;
}
/**
......@@ -131,10 +129,18 @@ public class LitemallCouponExample {
* This method corresponds to the database table litemall_coupon
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria(this);
return criteria;
public LitemallCouponExample orderBy(String ... orderByClauses) {
StringBuffer sb = new StringBuffer();
for (int i = 0; i < orderByClauses.length; i++) {
sb.append(orderByClauses[i]);
if (i < orderByClauses.length - 1) {
sb.append(" , ");
}
}
this.setOrderByClause(sb.toString());
return this;
}
/**
......@@ -143,10 +149,12 @@ public class LitemallCouponExample {
*
* @mbg.generated
*/
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
/**
......@@ -154,11 +162,10 @@ public class LitemallCouponExample {
* This method corresponds to the database table litemall_coupon
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public LitemallCouponExample orderBy(String orderByClause) {
this.setOrderByClause(orderByClause);
return this;
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria(this);
return criteria;
}
/**
......@@ -166,18 +173,11 @@ public class LitemallCouponExample {
* This method corresponds to the database table litemall_coupon
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public LitemallCouponExample orderBy(String ... orderByClauses) {
StringBuffer sb = new StringBuffer();
for (int i = 0; i < orderByClauses.length; i++) {
sb.append(orderByClauses[i]);
if (i < orderByClauses.length - 1) {
sb.append(" , ");
}
}
this.setOrderByClause(sb.toString());
return this;
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
/**
......@@ -1071,6 +1071,29 @@ public class LitemallCouponExample {
return this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_coupon
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andLogicalDeleted(boolean deleted) {
return deleted ? andDeletedEqualTo(LitemallCoupon.IS_DELETED) : andDeletedNotEqualTo(LitemallCoupon.IS_DELETED);
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_coupon
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
@Deprecated
public Criteria andDeleted(boolean deleted) {
return deleted ? andDeletedEqualTo(LitemallCoupon.IS_DELETED) : andDeletedNotEqualTo(LitemallCoupon.IS_DELETED);
}
/**
* This interface was generated by MyBatis Generator.
* This interface corresponds to the database table litemall_coupon
......
......@@ -3,6 +3,44 @@ package org.linlinjava.litemall.db.domain;
import java.time.LocalDateTime;
public class LitemallFootprint {
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table litemall_footprint
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public static final Boolean NOT_DELETED = false;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table litemall_footprint
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
@Deprecated
public static final Boolean DEL_FLAG_ON = false;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table litemall_footprint
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public static final Boolean IS_DELETED = true;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table litemall_footprint
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
@Deprecated
public static final Boolean DEL_FLAG_OFF = true;
/**
*
* This field was generated by MyBatis Generator.
......@@ -232,6 +270,17 @@ public class LitemallFootprint {
return result;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_footprint
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public void andLogicalDeleted(boolean deleted) {
setDeleted(deleted ? IS_DELETED : NOT_DELETED);
}
/**
* This enum was generated by MyBatis Generator.
* This enum corresponds to the database table litemall_footprint
......@@ -240,11 +289,11 @@ public class LitemallFootprint {
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public enum Column {
id("id"),
userId("user_id"),
goodsId("goods_id"),
addTime("add_time"),
deleted("deleted");
id("id", "id", "INTEGER"),
userId("user_id", "userId", "INTEGER"),
goodsId("goods_id", "goodsId", "INTEGER"),
addTime("add_time", "addTime", "TIMESTAMP"),
deleted("deleted", "deleted", "BIT");
/**
* This field was generated by MyBatis Generator.
......@@ -255,6 +304,24 @@ public class LitemallFootprint {
*/
private final String column;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table litemall_footprint
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private final String javaProperty;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table litemall_footprint
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private final String jdbcType;
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_footprint
......@@ -284,8 +351,32 @@ public class LitemallFootprint {
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
Column(String column) {
public String getJavaProperty() {
return this.javaProperty;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_footprint
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public String getJdbcType() {
return this.jdbcType;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_footprint
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
Column(String column, String javaProperty, String jdbcType) {
this.column = column;
this.javaProperty = javaProperty;
this.jdbcType = jdbcType;
}
/**
......
......@@ -116,13 +116,11 @@ public class LitemallFootprintExample {
* This method corresponds to the database table litemall_footprint
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
public LitemallFootprintExample orderBy(String orderByClause) {
this.setOrderByClause(orderByClause);
return this;
}
/**
......@@ -130,10 +128,18 @@ public class LitemallFootprintExample {
* This method corresponds to the database table litemall_footprint
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria(this);
return criteria;
public LitemallFootprintExample orderBy(String ... orderByClauses) {
StringBuffer sb = new StringBuffer();
for (int i = 0; i < orderByClauses.length; i++) {
sb.append(orderByClauses[i]);
if (i < orderByClauses.length - 1) {
sb.append(" , ");
}
}
this.setOrderByClause(sb.toString());
return this;
}
/**
......@@ -142,10 +148,12 @@ public class LitemallFootprintExample {
*
* @mbg.generated
*/
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
/**
......@@ -153,11 +161,10 @@ public class LitemallFootprintExample {
* This method corresponds to the database table litemall_footprint
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public LitemallFootprintExample orderBy(String orderByClause) {
this.setOrderByClause(orderByClause);
return this;
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria(this);
return criteria;
}
/**
......@@ -165,18 +172,11 @@ public class LitemallFootprintExample {
* This method corresponds to the database table litemall_footprint
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public LitemallFootprintExample orderBy(String ... orderByClauses) {
StringBuffer sb = new StringBuffer();
for (int i = 0; i < orderByClauses.length; i++) {
sb.append(orderByClauses[i]);
if (i < orderByClauses.length - 1) {
sb.append(" , ");
}
}
this.setOrderByClause(sb.toString());
return this;
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
/**
......@@ -580,6 +580,29 @@ public class LitemallFootprintExample {
return this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_footprint
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andLogicalDeleted(boolean deleted) {
return deleted ? andDeletedEqualTo(LitemallFootprint.IS_DELETED) : andDeletedNotEqualTo(LitemallFootprint.IS_DELETED);
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_footprint
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
@Deprecated
public Criteria andDeleted(boolean deleted) {
return deleted ? andDeletedEqualTo(LitemallFootprint.IS_DELETED) : andDeletedNotEqualTo(LitemallFootprint.IS_DELETED);
}
/**
* This interface was generated by MyBatis Generator.
* This interface corresponds to the database table litemall_footprint
......
......@@ -5,6 +5,44 @@ import java.time.LocalDateTime;
import java.util.Arrays;
public class LitemallGoods {
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table litemall_goods
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public static final Boolean NOT_DELETED = false;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table litemall_goods
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
@Deprecated
public static final Boolean DEL_FLAG_ON = false;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table litemall_goods
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public static final Boolean IS_DELETED = true;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table litemall_goods
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
@Deprecated
public static final Boolean DEL_FLAG_OFF = true;
/**
*
* This field was generated by MyBatis Generator.
......@@ -774,6 +812,17 @@ public class LitemallGoods {
return result;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_goods
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public void andLogicalDeleted(boolean deleted) {
setDeleted(deleted ? IS_DELETED : NOT_DELETED);
}
/**
* This enum was generated by MyBatis Generator.
* This enum corresponds to the database table litemall_goods
......@@ -782,26 +831,26 @@ public class LitemallGoods {
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public enum Column {
id("id"),
goodsSn("goods_sn"),
name("name"),
categoryId("category_id"),
brandId("brand_id"),
gallery("gallery"),
keywords("keywords"),
goodsBrief("goods_brief"),
isOnSale("is_on_sale"),
sortOrder("sort_order"),
counterPrice("counter_price"),
isNew("is_new"),
primaryPicUrl("primary_pic_url"),
listPicUrl("list_pic_url"),
isHot("is_hot"),
goodsUnit("goods_unit"),
retailPrice("retail_price"),
addTime("add_time"),
deleted("deleted"),
goodsDesc("goods_desc");
id("id", "id", "INTEGER"),
goodsSn("goods_sn", "goodsSn", "VARCHAR"),
name("name", "name", "VARCHAR"),
categoryId("category_id", "categoryId", "INTEGER"),
brandId("brand_id", "brandId", "INTEGER"),
gallery("gallery", "gallery", "CHAR"),
keywords("keywords", "keywords", "VARCHAR"),
goodsBrief("goods_brief", "goodsBrief", "VARCHAR"),
isOnSale("is_on_sale", "isOnSale", "BIT"),
sortOrder("sort_order", "sortOrder", "SMALLINT"),
counterPrice("counter_price", "counterPrice", "DECIMAL"),
isNew("is_new", "isNew", "BIT"),
primaryPicUrl("primary_pic_url", "primaryPicUrl", "VARCHAR"),
listPicUrl("list_pic_url", "listPicUrl", "VARCHAR"),
isHot("is_hot", "isHot", "BIT"),
goodsUnit("goods_unit", "goodsUnit", "VARCHAR"),
retailPrice("retail_price", "retailPrice", "DECIMAL"),
addTime("add_time", "addTime", "TIMESTAMP"),
deleted("deleted", "deleted", "BIT"),
goodsDesc("goods_desc", "goodsDesc", "LONGVARCHAR");
/**
* This field was generated by MyBatis Generator.
......@@ -812,6 +861,24 @@ public class LitemallGoods {
*/
private final String column;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table litemall_goods
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private final String javaProperty;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table litemall_goods
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private final String jdbcType;
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_goods
......@@ -841,8 +908,32 @@ public class LitemallGoods {
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
Column(String column) {
public String getJavaProperty() {
return this.javaProperty;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_goods
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public String getJdbcType() {
return this.jdbcType;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_goods
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
Column(String column, String javaProperty, String jdbcType) {
this.column = column;
this.javaProperty = javaProperty;
this.jdbcType = jdbcType;
}
/**
......
......@@ -3,6 +3,44 @@ package org.linlinjava.litemall.db.domain;
import java.time.LocalDateTime;
public class LitemallGoodsAttribute {
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table litemall_goods_attribute
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public static final Boolean NOT_DELETED = false;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table litemall_goods_attribute
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
@Deprecated
public static final Boolean DEL_FLAG_ON = false;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table litemall_goods_attribute
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public static final Boolean IS_DELETED = true;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table litemall_goods_attribute
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
@Deprecated
public static final Boolean DEL_FLAG_OFF = true;
/**
*
* This field was generated by MyBatis Generator.
......@@ -268,6 +306,17 @@ public class LitemallGoodsAttribute {
return result;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_goods_attribute
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public void andLogicalDeleted(boolean deleted) {
setDeleted(deleted ? IS_DELETED : NOT_DELETED);
}
/**
* This enum was generated by MyBatis Generator.
* This enum corresponds to the database table litemall_goods_attribute
......@@ -276,12 +325,12 @@ public class LitemallGoodsAttribute {
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public enum Column {
id("id"),
goodsId("goods_id"),
value("value"),
attribute("attribute"),
addTime("add_time"),
deleted("deleted");
id("id", "id", "INTEGER"),
goodsId("goods_id", "goodsId", "INTEGER"),
value("value", "value", "VARCHAR"),
attribute("attribute", "attribute", "VARCHAR"),
addTime("add_time", "addTime", "TIMESTAMP"),
deleted("deleted", "deleted", "BIT");
/**
* This field was generated by MyBatis Generator.
......@@ -292,6 +341,24 @@ public class LitemallGoodsAttribute {
*/
private final String column;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table litemall_goods_attribute
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private final String javaProperty;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table litemall_goods_attribute
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private final String jdbcType;
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_goods_attribute
......@@ -321,8 +388,32 @@ public class LitemallGoodsAttribute {
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
Column(String column) {
public String getJavaProperty() {
return this.javaProperty;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_goods_attribute
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public String getJdbcType() {
return this.jdbcType;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_goods_attribute
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
Column(String column, String javaProperty, String jdbcType) {
this.column = column;
this.javaProperty = javaProperty;
this.jdbcType = jdbcType;
}
/**
......
......@@ -116,13 +116,11 @@ public class LitemallGoodsAttributeExample {
* This method corresponds to the database table litemall_goods_attribute
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
public LitemallGoodsAttributeExample orderBy(String orderByClause) {
this.setOrderByClause(orderByClause);
return this;
}
/**
......@@ -130,10 +128,18 @@ public class LitemallGoodsAttributeExample {
* This method corresponds to the database table litemall_goods_attribute
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria(this);
return criteria;
public LitemallGoodsAttributeExample orderBy(String ... orderByClauses) {
StringBuffer sb = new StringBuffer();
for (int i = 0; i < orderByClauses.length; i++) {
sb.append(orderByClauses[i]);
if (i < orderByClauses.length - 1) {
sb.append(" , ");
}
}
this.setOrderByClause(sb.toString());
return this;
}
/**
......@@ -142,10 +148,12 @@ public class LitemallGoodsAttributeExample {
*
* @mbg.generated
*/
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
/**
......@@ -153,11 +161,10 @@ public class LitemallGoodsAttributeExample {
* This method corresponds to the database table litemall_goods_attribute
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public LitemallGoodsAttributeExample orderBy(String orderByClause) {
this.setOrderByClause(orderByClause);
return this;
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria(this);
return criteria;
}
/**
......@@ -165,18 +172,11 @@ public class LitemallGoodsAttributeExample {
* This method corresponds to the database table litemall_goods_attribute
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public LitemallGoodsAttributeExample orderBy(String ... orderByClauses) {
StringBuffer sb = new StringBuffer();
for (int i = 0; i < orderByClauses.length; i++) {
sb.append(orderByClauses[i]);
if (i < orderByClauses.length - 1) {
sb.append(" , ");
}
}
this.setOrderByClause(sb.toString());
return this;
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
/**
......@@ -660,6 +660,29 @@ public class LitemallGoodsAttributeExample {
return this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_goods_attribute
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andLogicalDeleted(boolean deleted) {
return deleted ? andDeletedEqualTo(LitemallGoodsAttribute.IS_DELETED) : andDeletedNotEqualTo(LitemallGoodsAttribute.IS_DELETED);
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_goods_attribute
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
@Deprecated
public Criteria andDeleted(boolean deleted) {
return deleted ? andDeletedEqualTo(LitemallGoodsAttribute.IS_DELETED) : andDeletedNotEqualTo(LitemallGoodsAttribute.IS_DELETED);
}
/**
* This interface was generated by MyBatis Generator.
* This interface corresponds to the database table litemall_goods_attribute
......
......@@ -117,13 +117,11 @@ public class LitemallGoodsExample {
* This method corresponds to the database table litemall_goods
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
public LitemallGoodsExample orderBy(String orderByClause) {
this.setOrderByClause(orderByClause);
return this;
}
/**
......@@ -131,10 +129,18 @@ public class LitemallGoodsExample {
* This method corresponds to the database table litemall_goods
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria(this);
return criteria;
public LitemallGoodsExample orderBy(String ... orderByClauses) {
StringBuffer sb = new StringBuffer();
for (int i = 0; i < orderByClauses.length; i++) {
sb.append(orderByClauses[i]);
if (i < orderByClauses.length - 1) {
sb.append(" , ");
}
}
this.setOrderByClause(sb.toString());
return this;
}
/**
......@@ -143,10 +149,12 @@ public class LitemallGoodsExample {
*
* @mbg.generated
*/
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
/**
......@@ -154,11 +162,10 @@ public class LitemallGoodsExample {
* This method corresponds to the database table litemall_goods
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public LitemallGoodsExample orderBy(String orderByClause) {
this.setOrderByClause(orderByClause);
return this;
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria(this);
return criteria;
}
/**
......@@ -166,18 +173,11 @@ public class LitemallGoodsExample {
* This method corresponds to the database table litemall_goods
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public LitemallGoodsExample orderBy(String ... orderByClauses) {
StringBuffer sb = new StringBuffer();
for (int i = 0; i < orderByClauses.length; i++) {
sb.append(orderByClauses[i]);
if (i < orderByClauses.length - 1) {
sb.append(" , ");
}
}
this.setOrderByClause(sb.toString());
return this;
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
/**
......@@ -1535,6 +1535,29 @@ public class LitemallGoodsExample {
return this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_goods
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andLogicalDeleted(boolean deleted) {
return deleted ? andDeletedEqualTo(LitemallGoods.IS_DELETED) : andDeletedNotEqualTo(LitemallGoods.IS_DELETED);
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_goods
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
@Deprecated
public Criteria andDeleted(boolean deleted) {
return deleted ? andDeletedEqualTo(LitemallGoods.IS_DELETED) : andDeletedNotEqualTo(LitemallGoods.IS_DELETED);
}
/**
* This interface was generated by MyBatis Generator.
* This interface corresponds to the database table litemall_goods
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment