Add [test] implementation dependency on 'jakarta.persistence:jakarta.persistence-api'.
Correct test source import and use Jakarta EE types (e.g. @jakarta.persistence.Id) rather than Java EE types.
This commit is contained in:
@@ -13,6 +13,7 @@ dependencies {
|
||||
compileOnly "com.google.code.findbugs:jsr305:$findbugsVersion"
|
||||
|
||||
implementation "org.projectlombok:lombok"
|
||||
implementation "jakarta.persistence:jakarta.persistence-api"
|
||||
implementation "org.springframework.boot:spring-boot-starter-data-jpa"
|
||||
implementation "org.springframework.boot:spring-boot-starter-web"
|
||||
|
||||
|
||||
@@ -37,8 +37,8 @@ import lombok.ToString;
|
||||
* and {@link Integer score} of the {@link Golfer} when s/he competes/plays in a golf tournament.
|
||||
*
|
||||
* @author John Blum
|
||||
* @see javax.persistence.Entity
|
||||
* @see javax.persistence.Table
|
||||
* @see jakarta.persistence.Entity
|
||||
* @see jakarta.persistence.Table
|
||||
* @see org.springframework.data.annotation.Id
|
||||
* @since 1.4.0
|
||||
*/
|
||||
@@ -52,7 +52,7 @@ import lombok.ToString;
|
||||
@SuppressWarnings("unused")
|
||||
public class Golfer implements Comparable<Golfer> {
|
||||
|
||||
@javax.persistence.Id @Id @NonNull
|
||||
@jakarta.persistence.Id @Id @NonNull
|
||||
private String name;
|
||||
|
||||
@Setter
|
||||
|
||||
Reference in New Issue
Block a user