HHH-14724 Test-case demonstrating compilation issues with converters and validation

This commit is contained in:
Thomas Heigl 2021-07-11 11:57:53 +02:00 committed by Christian Beikov
parent aa5d40852c
commit e868e61cec
2 changed files with 3 additions and 0 deletions

View File

@ -30,6 +30,7 @@ dependencies {
testCompile libraries.junit
testCompile libraries.jpa
testCompile libraries.validation
testCompile project( ':hibernate-core' )
}

View File

@ -10,6 +10,7 @@ import javax.persistence.Convert;
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 class Goods {
this.productList = productList;
}
@NotNull
@Convert(converter = StringToListConverter.class)
public List<String> getTags() {
return tags;