lombok is added
This commit is contained in:
parent
191a6f4e75
commit
f32e6bd3e8
|
@ -32,7 +32,6 @@ public class UserController {
|
||||||
@GetMapping(value = "/users")
|
@GetMapping(value = "/users")
|
||||||
public Page<User> all(Pageable pageable) {
|
public Page<User> all(Pageable pageable) {
|
||||||
return userRepository.findAll(pageable);
|
return userRepository.findAll(pageable);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping(value = "/users/{userId}")
|
@GetMapping(value = "/users/{userId}")
|
||||||
|
|
|
@ -13,11 +13,13 @@ import javax.persistence.Table;
|
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||||
|
|
||||||
|
import lombok.Builder;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
@Entity
|
@Entity
|
||||||
@Table(name = "USER")
|
@Table(name = "USER")
|
||||||
@Data
|
@Data
|
||||||
|
@Builder
|
||||||
public class User implements Serializable {
|
public class User implements Serializable {
|
||||||
private static final long serialVersionUID = 2783105197387637187L;
|
private static final long serialVersionUID = 2783105197387637187L;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user