Upgrade the samples to Spring Boot 2.4.x

Closes gh-723
This commit is contained in:
Andy Wilkinson
2021-06-15 11:00:20 +01:00
parent bf1bfc4075
commit 55cbdd505a
27 changed files with 255 additions and 309 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2014 the original author or authors.
* Copyright 2014-2021 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -24,8 +24,6 @@ import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToMany;
import com.fasterxml.jackson.annotation.JsonIgnore;
@Entity
public class Note {
@@ -40,7 +38,6 @@ public class Note {
@ManyToMany
private List<Tag> tags;
@JsonIgnore
public long getId() {
return id;
}
@@ -65,7 +62,6 @@ public class Note {
this.body = body;
}
@JsonIgnore
public List<Tag> getTags() {
return tags;
}
@@ -73,4 +69,5 @@ public class Note {
public void setTags(List<Tag> tags) {
this.tags = tags;
}
}