13.07.2015 Views

JSR 303 的参考实现使用指南 - JBoss

JSR 303 的参考实现使用指南 - JBoss

JSR 303 的参考实现使用指南 - JBoss

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

第 2 章 Validation step by stepAnnotationSupported data作 用Hibernate metadatatypesimpacton the class path:any implementationsof ReadablePartialand ReadableInstant.@MaxBigDecimal,检 查 该 值 是 否 小 于 或会 给 对 应 的 数 据 库 表BigInteger, byte,等 于 约 束 条 件 中 指 定字 段 添 加 一 个 check 的short, int, long的 最 大 值 .约 束 条 件 .and the respectivewrappers of theprimitive types.Additionallysupported by HV:String (the numericvalue representedby a String isevaluated), anysub-type of Number.@MinBigDecimal,检 查 该 值 是 否 大 于 或会 给 对 应 的 数 据 库 表BigInteger, byte,等 于 约 束 条 件 中 规 定字 段 添 加 一 个 check 的short, int, long的 最 小 值 .约 束 条 件 .and the respectivewrappers of theprimitive types.Additionallysupported by HV:String (the numericvalue representedby a String isevaluated), anysub-type of Number.@NotNull Any type Checks that theannotated value isnot null.@Null Any type Checks that theannotated value isnull.对 应 的 表 字 段 不 允 许为 null.没 有@Pastjava.util.Date,检 查 标 注 对 象 中 的 值没 有java.util.Calendar;表 示 的 日 期 比 当 前 早 .Additionallysupported by HV,if the Joda Time24

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!