@Check doesn't work at property and collection level
Description
The @Check annotation doesn't work at property and collection level. it works only at class level. (L'annotation @Check ne fonctionne que lorsqu'elle est définie au niveau de la classe, impossible de définir plusieurs contraintes check pour différents champs d'un même bean).
Activity
Christian BeikovDecember 31, 2024 at 2:27 PM
Since ORM 7 implements JPA 3.2 which comes with a @CheckConstraint annotation, this works fine.
Emmanuel BernardApril 6, 2011 at 4:25 PM
Nobody had the time/priority to implement what was required (@org.hibernate.annotations.Column(s)). If somebody comes up with a proper GitHub pull request / patch, we can apply it.
Josh MooreApril 6, 2011 at 12:58 PM
Still holds for 3.5.6. Is the intended solution validator?
Dirk ManskeNovember 6, 2008 at 7:55 PM
Sad that this matter has not been investigated any further. @Check is neither supported on the property/collection level nor is it part of @Column. The comment from Emmanuel is over one year old... So will it ever be implemented? If so, when? Thanks.
The @Check annotation doesn't work at property and collection level.
it works only at class level.
(L'annotation @Check ne fonctionne que lorsqu'elle est définie au niveau de la classe, impossible de définir plusieurs contraintes check pour différents champs d'un même bean).