File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed
tooling/metamodel-generator
src/test/java/org/hibernate/jpamodelgen/test/collectionbasictype Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ dependencies {
30
30
31
31
testCompile libraries. junit
32
32
testCompile libraries. jpa
33
+ testCompile libraries. validation
33
34
testCompile project( ' :hibernate-core' )
34
35
}
35
36
Original file line number Diff line number Diff line change 10
10
import javax .persistence .Entity ;
11
11
import javax .persistence .Id ;
12
12
import javax .persistence .OneToMany ;
13
+ import javax .validation .constraints .NotNull ;
13
14
import java .util .List ;
14
15
15
16
/**
@@ -39,6 +40,7 @@ public void setProductList(List<Product> productList) {
39
40
this .productList = productList ;
40
41
}
41
42
43
+ @ NotNull
42
44
@ Convert (converter = StringToListConverter .class )
43
45
public List <String > getTags () {
44
46
return tags ;
You can’t perform that action at this time.
0 commit comments