Skip to content

Commit

Permalink
feat(scaffold): add TableId annotation to DemoDo field id
Browse files Browse the repository at this point in the history
  • Loading branch information
taccisum committed Jul 9, 2019
1 parent 3bd8e17 commit 9e24836
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
package ${basePackage}.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

@TableName("demo")
@Data
public class DemoDo {
@TableId(type = IdType.AUTO)
private Long id;
private String name;
}

0 comments on commit 9e24836

Please sign in to comment.