Skip to content

Commit

Permalink
feat(scaffold): integrate lombok
Browse files Browse the repository at this point in the history
  • Loading branch information
taccisum committed Jul 3, 2019
1 parent 55f1f19 commit e929c62
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 32 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@
<version>1.0.1</version>
</dependency>
${optionalDependencies}
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.8</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,25 +1,11 @@
package ${basePackage}.domain;

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

@TableName("demo")
@Data
public class DemoDo {
private Long id;
private String name;

public Long getId() {
return id;
}

public void setId(Long id) {
this.id = id;
}

public String getName() {
return name;
}

public void setName(String name) {
this.name = name;
}
}
Original file line number Diff line number Diff line change
@@ -1,22 +1,9 @@
package ${basePackage}.domain;

import lombok.Data;

@Data
public class DemoDo {
private Long id;
private String name;

public Long getId() {
return id;
}

public void setId(Long id) {
this.id = id;
}

public String getName() {
return name;
}

public void setName(String name) {
this.name = name;
}
}

0 comments on commit e929c62

Please sign in to comment.