HHH-14724 Test-case demonstrating compilation issues with converters and validation
This commit is contained in:
parent
e7bf1b76b8
commit
ffd22681cd
|
@ -30,6 +30,7 @@ dependencies {
|
||||||
|
|
||||||
testCompile libraries.junit
|
testCompile libraries.junit
|
||||||
testCompile libraries.jpa
|
testCompile libraries.jpa
|
||||||
|
testCompile libraries.validation
|
||||||
testCompile project( ':hibernate-core' )
|
testCompile project( ':hibernate-core' )
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -10,6 +10,7 @@ import javax.persistence.Convert;
|
||||||
import javax.persistence.Entity;
|
import javax.persistence.Entity;
|
||||||
import javax.persistence.Id;
|
import javax.persistence.Id;
|
||||||
import javax.persistence.OneToMany;
|
import javax.persistence.OneToMany;
|
||||||
|
import javax.validation.constraints.NotNull;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -39,6 +40,7 @@ public class Goods {
|
||||||
this.productList = productList;
|
this.productList = productList;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@NotNull
|
||||||
@Convert(converter = StringToListConverter.class)
|
@Convert(converter = StringToListConverter.class)
|
||||||
public List<String> getTags() {
|
public List<String> getTags() {
|
||||||
return tags;
|
return tags;
|
||||||
|
|
Loading…
Reference in New Issue