Skip to content

Commit

Permalink
添加 beetlSQL程序自生成主键支持
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx committed Jan 11, 2019
1 parent 54534d5 commit c3323ee
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,11 @@
<version>${lombok}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.ibeetl</groupId>
<artifactId>beetlsql</artifactId>
<version>2.10.44</version>
</dependency>
<!-- endregion -->
</dependencies>

Expand Down
2 changes: 2 additions & 0 deletions src/main/java/org/yyx/domain/entity/AbsBaseEntity.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package org.yyx.domain.entity;

import org.beetl.sql.core.annotatoin.AssignID;
import org.yyx.util.string.UtilString;

import java.util.Date;
Expand All @@ -16,6 +17,7 @@ public abstract class AbsBaseEntity implements BaseEntity {
/**
* 数据库表记录唯一主键标识
*/
@AssignID
private String pkField;
/**
* 数据库表记录状态 0:正常(可用,可见) 1:不正常(不可用,不可见)
Expand Down

0 comments on commit c3323ee

Please sign in to comment.