Migrate java-configuration:data sample to new major version
Spring Security 6.0.0-SNAPSHOT, SpringFramework 6.0.0-SNAPSHOT, Hibernate-core 6.0.0.Beta2
This commit is contained in:
parent
7b653aab91
commit
91a69b36f9
|
@ -9,20 +9,19 @@ repositories {
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation platform("org.springframework:spring-framework-bom:5.3.0")
|
implementation platform("org.springframework:spring-framework-bom:6.0.0-SNAPSHOT")
|
||||||
implementation platform("org.springframework.data:spring-data-releasetrain:Neumann-SR5")
|
implementation platform("org.springframework.security:spring-security-bom:6.0.0-SNAPSHOT")
|
||||||
implementation platform("org.springframework.security:spring-security-bom:5.5.0-SNAPSHOT")
|
|
||||||
implementation platform("org.junit:junit-bom:5.7.0")
|
implementation platform("org.junit:junit-bom:5.7.0")
|
||||||
|
|
||||||
implementation "org.springframework.security:spring-security-config"
|
implementation "org.springframework.security:spring-security-config"
|
||||||
implementation "org.springframework.security:spring-security-data"
|
implementation "org.springframework.security:spring-security-data"
|
||||||
implementation "org.springframework.security:spring-security-web"
|
implementation "org.springframework.security:spring-security-web"
|
||||||
implementation 'jakarta.validation:jakarta.validation-api:2.0.2'
|
implementation 'jakarta.validation:jakarta.validation-api:2.0.2'
|
||||||
implementation 'javax.persistence:javax.persistence-api:2.2'
|
implementation 'jakarta.persistence:jakarta.persistence-api:3.0.0'
|
||||||
implementation 'org.hibernate:hibernate-entitymanager:5.4.22.Final'
|
implementation 'org.hibernate.orm:hibernate-core:6.0.0.Beta2'
|
||||||
implementation 'org.hibernate.validator:hibernate-validator:6.1.6.Final'
|
implementation 'org.hibernate.validator:hibernate-validator:7.0.1.Final'
|
||||||
implementation 'org.hsqldb:hsqldb:2.5.1'
|
implementation 'org.hsqldb:hsqldb:2.5.1'
|
||||||
implementation 'org.springframework.data:spring-data-jpa'
|
implementation 'org.springframework.data:spring-data-jpa:3.0.0-SNAPSHOT'
|
||||||
|
|
||||||
testImplementation "org.assertj:assertj-core:3.18.0"
|
testImplementation "org.assertj:assertj-core:3.18.0"
|
||||||
testImplementation "org.springframework:spring-test"
|
testImplementation "org.springframework:spring-test"
|
||||||
|
|
|
@ -18,12 +18,12 @@ package example;
|
||||||
|
|
||||||
import java.util.Calendar;
|
import java.util.Calendar;
|
||||||
|
|
||||||
import javax.persistence.Entity;
|
import jakarta.persistence.Entity;
|
||||||
import javax.persistence.GeneratedValue;
|
import jakarta.persistence.GeneratedValue;
|
||||||
import javax.persistence.GenerationType;
|
import jakarta.persistence.GenerationType;
|
||||||
import javax.persistence.Id;
|
import jakarta.persistence.Id;
|
||||||
import javax.persistence.OneToOne;
|
import jakarta.persistence.OneToOne;
|
||||||
import javax.validation.constraints.NotEmpty;
|
import jakarta.validation.constraints.NotEmpty;
|
||||||
|
|
||||||
@Entity
|
@Entity
|
||||||
public class Message {
|
public class Message {
|
||||||
|
|
|
@ -16,10 +16,10 @@
|
||||||
|
|
||||||
package example;
|
package example;
|
||||||
|
|
||||||
import javax.persistence.Entity;
|
import jakarta.persistence.Entity;
|
||||||
import javax.persistence.GeneratedValue;
|
import jakarta.persistence.GeneratedValue;
|
||||||
import javax.persistence.GenerationType;
|
import jakarta.persistence.GenerationType;
|
||||||
import javax.persistence.Id;
|
import jakarta.persistence.Id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A user.
|
* A user.
|
||||||
|
|
Loading…
Reference in New Issue