Hibernate SVN: r15972 - in validator/trunk/tck-utils/api: src/main/resources and 1 other directory.
by hibernate-commits@lists.jboss.org
Author: pete.muir(a)jboss.org
Date: 2009-02-14 18:17:29 -0500 (Sat, 14 Feb 2009)
New Revision: 15972
Added:
validator/trunk/tck-utils/api/src/main/resources/tck-audit.xsd
Modified:
validator/trunk/tck-utils/api/pom.xml
Log:
WBTCK-19, add xsd
Modified: validator/trunk/tck-utils/api/pom.xml
===================================================================
--- validator/trunk/tck-utils/api/pom.xml 2009-02-13 12:56:02 UTC (rev 15971)
+++ validator/trunk/tck-utils/api/pom.xml 2009-02-14 23:17:29 UTC (rev 15972)
@@ -25,6 +25,29 @@
<target>1.5</target>
</configuration>
</plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>build-helper-maven-plugin</artifactId>
+ <version>1.2</version>
+ <executions>
+ <execution>
+ <id>attach-artifacts</id>
+ <phase>package</phase>
+ <goals>
+ <goal>attach-artifact</goal>
+ </goals>
+ <configuration>
+ <artifacts>
+ <artifact>
+ <file>${basedir}/src/main/resources/tck-audit.xsd</file>
+ <type>xsd</type>
+ <classifier>audit</classifier>
+ </artifact>
+ </artifacts>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
</plugins>
</build>
Added: validator/trunk/tck-utils/api/src/main/resources/tck-audit.xsd
===================================================================
--- validator/trunk/tck-utils/api/src/main/resources/tck-audit.xsd (rev 0)
+++ validator/trunk/tck-utils/api/src/main/resources/tck-audit.xsd 2009-02-14 23:17:29 UTC (rev 15972)
@@ -0,0 +1,62 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
+ elementFormDefault="qualified"
+ targetNamespace="http://jboss.com/products/webbeans/tck/audit"
+ xmlns:audit="http://jboss.com/products/webbeans/tck/audit">
+
+ <xs:element name="specification">
+ <xs:annotation>
+ <xs:documentation> The specification tag is the root element for tck-audit.xml. </xs:documentation>
+ </xs:annotation>
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element ref="audit:section"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+
+ <xs:element name="section">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="0" maxOccurs="unbounded" ref="audit:assertion"/>
+ </xs:sequence>
+ <xs:attributeGroup ref="audit:attlist.section"/>
+ </xs:complexType>
+ </xs:element>
+
+ <xs:attributeGroup name="attlist.section">
+ <xs:attribute name="id" type="xs:string"/>
+ <xs:attribute name="title" type="xs:string"/>
+ </xs:attributeGroup>
+
+ <xs:element name="assertion">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="1" maxOccurs="1" ref="audit:text"/>
+ <xs:element minOccurs="0" maxOccurs="1" ref="audit:note"/>
+ </xs:sequence>
+ <xs:attributeGroup ref="audit:attlist.assertion"/>
+ </xs:complexType>
+ </xs:element>
+
+ <xs:attributeGroup name="attlist.assertion">
+ <xs:attribute name="id" type="xs:string"/>
+ </xs:attributeGroup>
+
+ <xs:element name="text">
+ <xs:complexType>
+ <xs:simpleContent>
+ <xs:extension base="xs:string"/>
+ </xs:simpleContent>
+ </xs:complexType>
+ </xs:element>
+
+ <xs:element name="note">
+ <xs:complexType>
+ <xs:simpleContent>
+ <xs:extension base="xs:string"/>
+ </xs:simpleContent>
+ </xs:complexType>
+ </xs:element>
+
+</xs:schema>
\ No newline at end of file
Property changes on: validator/trunk/tck-utils/api/src/main/resources/tck-audit.xsd
___________________________________________________________________
Name: svn:mime-type
+ text/plain
15 years, 2 months
Hibernate SVN: r15971 - beanvalidation/trunk/validation-api/src/main/java/javax/validation.
by hibernate-commits@lists.jboss.org
Author: epbernard
Date: 2009-02-13 07:56:02 -0500 (Fri, 13 Feb 2009)
New Revision: 15971
Modified:
beanvalidation/trunk/validation-api/src/main/java/javax/validation/ConstraintValidatorContext.java
Log:
Terminology clean up
Modified: beanvalidation/trunk/validation-api/src/main/java/javax/validation/ConstraintValidatorContext.java
===================================================================
--- beanvalidation/trunk/validation-api/src/main/java/javax/validation/ConstraintValidatorContext.java 2009-02-12 10:35:02 UTC (rev 15970)
+++ beanvalidation/trunk/validation-api/src/main/java/javax/validation/ConstraintValidatorContext.java 2009-02-13 12:56:02 UTC (rev 15971)
@@ -17,7 +17,7 @@
void disableDefaultError();
/**
- * @return the current unexpanded default message
+ * @return the current uninterpolated default message
*/
String getDefaultErrorMessage();
@@ -33,7 +33,7 @@
* This method can be called multiple time. One ConstraintViolation instance per
* call is created.
*
- * @param message new unexpanded error message
+ * @param message new uninterpolated error message
*/
void addError(String message);
@@ -46,7 +46,7 @@
* has been called.
* <p/>
*
- * @param message new unexpanded error message
+ * @param message new uninterpolated error message
* @param property property name the ConstraintViolation is targeting
*/
void addError(String message, String property);
15 years, 2 months
Hibernate SVN: r15970 - validator/tags.
by hibernate-commits@lists.jboss.org
Author: hardy.ferentschik
Date: 2009-02-12 05:35:02 -0500 (Thu, 12 Feb 2009)
New Revision: 15970
Added:
validator/tags/v4_0_0_Alpha1/
Log:
Created tag v4_0_0_Alpha1.
Copied: validator/tags/v4_0_0_Alpha1 (from rev 15969, validator/trunk)
15 years, 2 months
Hibernate SVN: r15969 - in validator/trunk/hibernate-validator: src/main/docbook/en-US and 1 other directories.
by hibernate-commits@lists.jboss.org
Author: hardy.ferentschik
Date: 2009-02-12 05:33:56 -0500 (Thu, 12 Feb 2009)
New Revision: 15969
Modified:
validator/trunk/hibernate-validator/readme.txt
validator/trunk/hibernate-validator/src/main/docbook/en-US/master.xml
validator/trunk/hibernate-validator/src/main/docbook/en-US/modules/gettingstarted.xml
Log:
added a link to a 1.0.Beta3 version of the spec on in.relation.to
Modified: validator/trunk/hibernate-validator/readme.txt
===================================================================
--- validator/trunk/hibernate-validator/readme.txt 2009-02-12 10:22:29 UTC (rev 15968)
+++ validator/trunk/hibernate-validator/readme.txt 2009-02-12 10:33:56 UTC (rev 15969)
@@ -28,7 +28,8 @@
- XML configuration
You can find more information about the current state of the implementation on the
- Bean Validation RI Roadmap - http://www.hibernate.org/459.html
+ Bean Validation RI Roadmap - http://www.hibernate.org/459.html and there is copy of
+ JSR as of the time of this release available here - http://in.relation.to/service/File/10678
Documentation
-------------
Modified: validator/trunk/hibernate-validator/src/main/docbook/en-US/master.xml
===================================================================
--- validator/trunk/hibernate-validator/src/main/docbook/en-US/master.xml 2009-02-12 10:22:29 UTC (rev 15968)
+++ validator/trunk/hibernate-validator/src/main/docbook/en-US/master.xml 2009-02-12 10:33:56 UTC (rev 15969)
@@ -68,8 +68,9 @@
<para>This release has alpha status, meaning that neither the
implementation nor this documenation is complete. However, implementation
should be in a state allowing first experiments with this new API. The
- following list shows the missing features in relation to the latest
- version of JSR 303:</para>
+ following list shows the missing features in relation to the <ulink
+ url="http://in.relation.to/service/File/10678">1.0.Beta3 version of JSR
+ 303</ulink> :</para>
<itemizedlist>
<listitem>
Modified: validator/trunk/hibernate-validator/src/main/docbook/en-US/modules/gettingstarted.xml
===================================================================
--- validator/trunk/hibernate-validator/src/main/docbook/en-US/modules/gettingstarted.xml 2009-02-12 10:22:29 UTC (rev 15968)
+++ validator/trunk/hibernate-validator/src/main/docbook/en-US/modules/gettingstarted.xml 2009-02-12 10:33:56 UTC (rev 15969)
@@ -350,6 +350,7 @@
<para>That concludes our 5 minute tour through the world of the Bean
Validation RI. We will complete this documentation in our coming releases.
For now we recommend to refer to the JSR 303 specification directly for
- more examples.</para>
+ more examples. The 1.0.Beta3 version of this specification is available
+ <ulink url="http://in.relation.to/service/File/10678">here</ulink>.</para>
</section>
</chapter>
15 years, 2 months
Hibernate SVN: r15968 - validator/tags.
by hibernate-commits@lists.jboss.org
Author: hardy.ferentschik
Date: 2009-02-12 05:22:29 -0500 (Thu, 12 Feb 2009)
New Revision: 15968
Removed:
validator/tags/v4_0_0_Alpha1/
Log:
Removed validator/tags/v4_0_0_Alpha1 again :(
15 years, 2 months
Hibernate SVN: r15967 - validator/tags.
by hibernate-commits@lists.jboss.org
Author: hardy.ferentschik
Date: 2009-02-12 04:55:12 -0500 (Thu, 12 Feb 2009)
New Revision: 15967
Added:
validator/tags/v4_0_0_Alpha1/
Log:
Created tag v4_0_0_Alpha1.
Copied: validator/tags/v4_0_0_Alpha1 (from rev 15966, validator/trunk)
15 years, 2 months
Hibernate SVN: r15966 - in validator/trunk/hibernate-validator: src/main/assembly and 1 other directory.
by hibernate-commits@lists.jboss.org
Author: hardy.ferentschik
Date: 2009-02-12 04:50:36 -0500 (Thu, 12 Feb 2009)
New Revision: 15966
Modified:
validator/trunk/hibernate-validator/readme.txt
validator/trunk/hibernate-validator/src/main/assembly/dist.xml
Log:
changed the packaging structure a little to align with other hibernate projects
Modified: validator/trunk/hibernate-validator/readme.txt
===================================================================
--- validator/trunk/hibernate-validator/readme.txt 2009-02-12 08:56:49 UTC (rev 15965)
+++ validator/trunk/hibernate-validator/readme.txt 2009-02-12 09:50:36 UTC (rev 15966)
@@ -34,7 +34,7 @@
-------------
The documentation available as of the date of this release is included in
- HTML and PDf format in the dist/docs directory.
+ HTML and PDf format in the docs directory.
Release Notes
-------------
@@ -50,7 +50,7 @@
Using Hibernate Validator
-------------------------
- - Copy dist/hibernate-validator-*.jar together will all jar files from dist/lib into the
+ - Copy hibernate-validator-*.jar together will all jar files from lib into the
classpath of your application
or
Modified: validator/trunk/hibernate-validator/src/main/assembly/dist.xml
===================================================================
--- validator/trunk/hibernate-validator/src/main/assembly/dist.xml 2009-02-12 08:56:49 UTC (rev 15965)
+++ validator/trunk/hibernate-validator/src/main/assembly/dist.xml 2009-02-12 09:50:36 UTC (rev 15966)
@@ -29,7 +29,7 @@
<dependencySets>
<dependencySet>
<useProjectArtifact>false</useProjectArtifact>
- <outputDirectory>/dist/lib</outputDirectory>
+ <outputDirectory>lib</outputDirectory>
<scope>runtime</scope>
</dependencySet>
</dependencySets>
@@ -37,18 +37,18 @@
<fileSets>
<fileSet>
<directory>target</directory>
- <outputDirectory>/dist</outputDirectory>
+ <outputDirectory></outputDirectory>
<includes>
<include>*.jar</include>
</includes>
</fileSet>
<fileSet>
<directory>target/site/apidocs</directory>
- <outputDirectory>/dist/docs/api</outputDirectory>
+ <outputDirectory>docs/api</outputDirectory>
</fileSet>
<fileSet>
<directory>target/docbook/publish/en-US</directory>
- <outputDirectory>/dist/docs/manual</outputDirectory>
+ <outputDirectory>docs/manual</outputDirectory>
</fileSet>
<fileSet>
<directory>.</directory>
15 years, 2 months
Hibernate SVN: r15965 - in validator/trunk/hibernate-validator: src/main/docbook/en-US and 1 other directories.
by hibernate-commits@lists.jboss.org
Author: hardy.ferentschik
Date: 2009-02-12 03:56:49 -0500 (Thu, 12 Feb 2009)
New Revision: 15965
Modified:
validator/trunk/hibernate-validator/readme.txt
validator/trunk/hibernate-validator/src/main/docbook/en-US/master.xml
validator/trunk/hibernate-validator/src/main/docbook/en-US/modules/gettingstarted.xml
Log:
Some more changes after Emmanuel's review
Modified: validator/trunk/hibernate-validator/readme.txt
===================================================================
--- validator/trunk/hibernate-validator/readme.txt 2009-02-12 08:36:09 UTC (rev 15964)
+++ validator/trunk/hibernate-validator/readme.txt 2009-02-12 08:56:49 UTC (rev 15965)
@@ -4,7 +4,7 @@
What is it?
-----------
- This is a reference implementation of JSR 303 - Bean Validation.
+ This is the reference implementation of JSR 303 - Bean Validation.
Bean Validation defines a metadata model and API for JavaBean validation.
The default metadata source is annotations, with the ability to override and extend
the meta-data through the use of XML validation descriptors.
@@ -16,6 +16,20 @@
is not based JSR 303. This code can be accessed via
http://anonsvn.jboss.org/repos/hibernate/validator/trunk/hibernate-valida...
+ Status
+ ------
+
+ This is an alpha release and not feature complete in relation to the latest version
+ of JSR 303. The following features are not yet fully implemented:
+
+ - Group inheritance using interfaces and implicit grouping
+ - Implementation of the TraversableResolver interface to allow integration with JPA
+ - Polymorphism in graph validation
+ - XML configuration
+
+ You can find more information about the current state of the implementation on the
+ Bean Validation RI Roadmap - http://www.hibernate.org/459.html
+
Documentation
-------------
Modified: validator/trunk/hibernate-validator/src/main/docbook/en-US/master.xml
===================================================================
--- validator/trunk/hibernate-validator/src/main/docbook/en-US/master.xml 2009-02-12 08:36:09 UTC (rev 15964)
+++ validator/trunk/hibernate-validator/src/main/docbook/en-US/master.xml 2009-02-12 08:56:49 UTC (rev 15965)
@@ -27,7 +27,7 @@
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
<!ENTITY versionNumber "4.0.0.Alpha1">
<!ENTITY copyrightYear "2009">
-<!ENTITY copyrightHolder "Red Hat Middleware, LLC.">
+<!ENTITY copyrightHolder "Red Hat Middleware, LLC. & Gunnar Morling">
]>
<book lang="en">
<bookinfo>
@@ -45,10 +45,11 @@
<mediaobject>
<imageobject role="fo">
- <imagedata fileref="hibernate_logo_a.png" align="center" />
+ <imagedata align="center" fileref="hibernate_logo_a.png" />
</imageobject>
+
<imageobject role="html">
- <imagedata fileref="hibernate_logo_a.png" depth="3cm" />
+ <imagedata depth="3cm" fileref="hibernate_logo_a.png" />
</imageobject>
</mediaobject>
@@ -81,7 +82,7 @@
</listitem>
<listitem>
- <para>Polymorphism in graph validation </para>
+ <para>Polymorphism in graph validation</para>
</listitem>
<listitem>
@@ -91,17 +92,17 @@
<para>You can find more information about the current state of the
implementation on the <ulink url="http://www.hibernate.org/459.html">Bean
- Validation Roadmap</ulink>. </para>
+ Validation Roadmap</ulink>.</para>
<para>The documentation contains so far only a "Getting started" section.
Work is in progress in this area and following releases will have more up
- to date documentation. For now refer to <ulink
- url="http://hibernate.org/~emmanuel/validation/">JSR 303</ulink> directly
- for further examples.</para>
+ to date documentation. For now refer to JSR 303 directly for further
+ examples.</para>
<para>Please report any problems or bugs in either <ulink
url="http://opensource.atlassian.com/projects/hibernate/browse/HV">Jira
- Hibernate Validator</ulink> or on the <ulink url="http://forum.hibernate.org/viewforum.php?f=9">Validator
+ Hibernate Validator</ulink> or on the <ulink
+ url="http://forum.hibernate.org/viewforum.php?f=9">Validator
Forum</ulink>.</para>
</preface>
Modified: validator/trunk/hibernate-validator/src/main/docbook/en-US/modules/gettingstarted.xml
===================================================================
--- validator/trunk/hibernate-validator/src/main/docbook/en-US/modules/gettingstarted.xml 2009-02-12 08:36:09 UTC (rev 15964)
+++ validator/trunk/hibernate-validator/src/main/docbook/en-US/modules/gettingstarted.xml 2009-02-12 08:56:49 UTC (rev 15965)
@@ -29,9 +29,9 @@
<title>Getting started in 5 minutes</title>
<para>This chapter will show you how to quickly get started with the
- reference implementation (RI) of the Bean Validation API as specified by
- <ulink url="http://jcp.org/en/jsr/detail?id=303">JSR 303</ulink>. Be sure to
- fulfill the following prerequisites in order to proceed:</para>
+ reference implementation (RI) of the Bean Validation API as specified by JSR
+ 303. Be sure to fulfill the following prerequisites in order to
+ proceed:</para>
<itemizedlist>
<listitem>
@@ -348,9 +348,8 @@
<title>Where to go next?</title>
<para>That concludes our 5 minute tour through the world of the Bean
- Validation RI. You might next be interested in using some <link
- linkend="validator-usingvalidator">advanced features of the Validator
- API</link> or how to define your own <link
- linkend="validator-customconstraints">custom constraint</link>.</para>
+ Validation RI. We will complete this documentation in our coming releases.
+ For now we recommend to refer to the JSR 303 specification directly for
+ more examples.</para>
</section>
</chapter>
15 years, 2 months
Hibernate SVN: r15964 - core/branches/Branch_3_2_4_SP1_CP/src/org/hibernate/dialect.
by hibernate-commits@lists.jboss.org
Author: gbadner
Date: 2009-02-12 03:36:09 -0500 (Thu, 12 Feb 2009)
New Revision: 15964
Modified:
core/branches/Branch_3_2_4_SP1_CP/src/org/hibernate/dialect/AbstractTransactSQLDialect.java
core/branches/Branch_3_2_4_SP1_CP/src/org/hibernate/dialect/SQLServerDialect.java
Log:
JBPAPP-1563 HHH-3640 - Some standard SQL functions are not implemented in Sybase (correction)
Modified: core/branches/Branch_3_2_4_SP1_CP/src/org/hibernate/dialect/AbstractTransactSQLDialect.java
===================================================================
--- core/branches/Branch_3_2_4_SP1_CP/src/org/hibernate/dialect/AbstractTransactSQLDialect.java 2009-02-12 08:32:17 UTC (rev 15963)
+++ core/branches/Branch_3_2_4_SP1_CP/src/org/hibernate/dialect/AbstractTransactSQLDialect.java 2009-02-12 08:36:09 UTC (rev 15964)
@@ -100,9 +100,6 @@
registerFunction( "trim", new SQLFunctionTemplate( Hibernate.STRING, "ltrim(rtrim(?1))") );
registerFunction( "locate", new CharIndexFunction() );
- registerFunction( "mod", new SQLFunctionTemplate( Hibernate.INTEGER, "?1 % ?2" ) );
- registerFunction( "bit_length", new SQLFunctionTemplate( Hibernate.INTEGER, "datalength(?1) * 8" ) );
-
getDefaultProperties().setProperty(Environment.STATEMENT_BATCH_SIZE, NO_BATCH);
}
Modified: core/branches/Branch_3_2_4_SP1_CP/src/org/hibernate/dialect/SQLServerDialect.java
===================================================================
--- core/branches/Branch_3_2_4_SP1_CP/src/org/hibernate/dialect/SQLServerDialect.java 2009-02-12 08:32:17 UTC (rev 15963)
+++ core/branches/Branch_3_2_4_SP1_CP/src/org/hibernate/dialect/SQLServerDialect.java 2009-02-12 08:36:09 UTC (rev 15964)
@@ -26,6 +26,9 @@
registerFunction( "locate", new StandardSQLFunction("charindex", Hibernate.INTEGER) );
registerFunction( "extract", new SQLFunctionTemplate( Hibernate.INTEGER, "datepart(?1, ?3)" ) );
+ registerFunction( "mod", new SQLFunctionTemplate( Hibernate.INTEGER, "?1 % ?2" ) );
+ registerFunction( "bit_length", new SQLFunctionTemplate( Hibernate.INTEGER, "datalength(?1) * 8" ) );
+
registerFunction( "trim", new AnsiTrimEmulationFunction() );
registerKeyword("top");
15 years, 2 months
Hibernate SVN: r15963 - validator/tags.
by hibernate-commits@lists.jboss.org
Author: hardy.ferentschik
Date: 2009-02-12 03:32:17 -0500 (Thu, 12 Feb 2009)
New Revision: 15963
Removed:
validator/tags/v4_0_0_Alpha1/
Log:
Removed validator/tags/v4_0_0_Alpha1
15 years, 2 months