import java.sql.Timestamp;
public class UserAddress {
private Integer id;
private String Address;
private Boolean processed;
private Timestamp update_up;
...
public Timestamp getUpdate_up() {
return update_up;
}
public void setUpdate_up(Timestamp update_up) {
this.update_up = update_up;
}
Но вот как передать время не знаю (
@RestController
public class DashboardController {
@RequestMapping("/dashboard")
public List<UserAddress> getAllUserAddressList() {
return Arrays.asList(
new UserAddress(1,"test",true, null),
new UserAddress(2,null,false,null),
new UserAddress(3,"test test",true,null)
);
}