<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>enterprisegeeks</author_name>
  <author_url>https://blog.hatena.ne.jp/enterprisegeeks/</author_url>
  <blog_title>エンタープライズギークス (Enterprise Geeks)</blog_title>
  <blog_url>https://enterprisegeeks.hatenablog.com/</blog_url>
  <categories>
    <anon>JavaEE</anon>
    <anon>BeanValidation</anon>
  </categories>
  <description>前々回と前回の記事では、Bean Validation の基本的なアノテーションの使用方法と、カスタムアノテーションの作成方法を紹介した。基本的にこれらは、1つの Bean に対して共通のバリデーションを定義するものである。 今回は、1つの Bean に対して複数の制約を定義して、バリデーションの実行時に柔軟に切り替える方法を紹介する。 Listを使って同じ名前の制約を複数定義する 制約アノテーションは内部クラスとしてListアノテーションを持っている。 これは、同じ制約を異なる条件で複数定義したい時に使用する。 （同一のアノテーションを複数指定することはできないので、それを回避するための方法…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fenterprisegeeks.hatenablog.com%2Fentry%2F2016%2F03%2F29%2F155536&quot; title=&quot;JavaEE7をはじめよう(25) - Bean Validationで複雑な条件を記述する - エンタープライズギークス (Enterprise Geeks)&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2016-03-29 15:55:36</published>
  <title>JavaEE7をはじめよう(25) - Bean Validationで複雑な条件を記述する</title>
  <type>rich</type>
  <url>https://enterprisegeeks.hatenablog.com/entry/2016/03/29/155536</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
