这种校验会通过拒绝空值,强迫加上非空[not NULL]字段的约束,但是也只有在这种情况下,你的数据库会拒绝空值。
This new validation will enforce NOT null column constraints by rejecting null values, but only in situations where your database would reject a null value.
我们使用了一个校验和报表统计应用程序的例子向您介绍了使用Groovy编写ant脚本和一个数据库报表统计来展示使用GroovySql进行JDBC编程。
I used a checksum reporting application example to show you the basics of Ant scripting with Groovy and a database statistics report to demonstrate the benefits of JDBC programming with GroovySql.
Emmanuel说到,JPA 2.0框架可以使用bean校验框架基于bean的约束注解来产生数据库约束。
Emmanuel said that JPA 2.0 framework could use the bean validation framework to generate database constraints based on the bean constraint annotations.
应用推荐