mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-17 16:44:57 +00:00
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.jpa
|
||||
testCompile libraries.validation
|
||||
testCompile project( ':hibernate-core' )
|
||||
}
|
||||
|
||||
|
@ -10,6 +10,7 @@
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.OneToMany;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
@ -39,6 +40,7 @@ public void setProductList(List<Product> productList) {
|
||||
this.productList = productList;
|
||||
}
|
||||
|
||||
@NotNull
|
||||
@Convert(converter = StringToListConverter.class)
|
||||
public List<String> getTags() {
|
||||
return tags;
|
||||
|
Loading…
x
Reference in New Issue
Block a user