Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Hibernateバリデーターについて質問があります:
class A { private String a; private String b; }
文字列aとbはどちらもnullにすることができますが、両方をnullにすることはできません。Hibernate Validatorを使用してこのケースを検証するにはどうすればよいですか?
ありがとう、
これを行うには、カスタムクラスレベルのバリデーターを使用します。
Hibernateバリデーターリファレンスから: