I'm trying to add constraints checking, as described here How to specify the cardinality of a @OneToMany in EclipseLink/JPA
相关问题
- JPA one-to-many association to an entity with @Inh
- How does the JPA handle partial, non-disjoint inhe
- How can I access the repository from the entity in
- Should there be an EntityManager per thread in Spr
- JPA and eclipselink - Overriding FetchType.Eager
相关文章
- 这个SpringBoot 2.2.x,怎么判断?
- Hibernate doesn't generate cascade
- Writing CRUDRepository's findBy() method on a
- QueryDSL Window functions
- How to left join unrelated entities?
- JPA configure boolean fields to persist as integer
- How to map an abstract collection with jpa?
- Two foreign keys as primary key
Here are the dependencies I'm using (with Maven):
That you can get from this repository:
Latest dependencies:
This transitively pulls in the dependency to the Bean Validation API, so you don't need to do this anymore:
For additional features, Expression Language and CDI support, you might need to add
Source: Hibernate Validator documentation
These all are both in Maven Central Repo, so you don't need to add the JBoss repo.
And BTW here's my example convenience method:
The
Origin.Wise
is something like JAXB's@XmlLocation Locator
.