Skip to content

Commit

Permalink
HHH-14724 Test-case demonstrating compilation issues with converters …
Browse files Browse the repository at this point in the history
…and validation
  • Loading branch information
theigl authored and beikov committed Jul 29, 2021
1 parent aa5d408 commit e868e61
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions tooling/metamodel-generator/hibernate-jpamodelgen.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ dependencies {

testCompile libraries.junit
testCompile libraries.jpa
testCompile libraries.validation
testCompile project( ':hibernate-core' )
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

/**
Expand Down Expand Up @@ -39,6 +40,7 @@ public void setProductList(List<Product> productList) {
this.productList = productList;
}

@NotNull
@Convert(converter = StringToListConverter.class)
public List<String> getTags() {
return tags;
Expand Down

0 comments on commit e868e61

Please sign in to comment.