[jboss-cvs] Repository SVN: r1138 - hibernate-annotations/3.2.1.GA.patch01-brew and 3 other directories.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Fri Aug 24 15:48:00 EDT 2007


Author: dbhole
Date: 2007-08-24 15:48:00 -0400 (Fri, 24 Aug 2007)
New Revision: 1138

Added:
   hibernate-annotations/3.2.1.GA.patch01-brew/
   hibernate-annotations/3.2.1.GA.patch01-brew/component-info.xml
   hibernate-annotations/3.2.1.GA.patch01-brew/lib/
   hibernate-annotations/3.2.1.GA.patch01-brew/lib/hibernate-annotations.jar
   hibernate-annotations/3.2.1.GA.patch01-brew/src/
   hibernate-annotations/3.2.1.GA.patch01-brew/src/hibernate-annotations-3.2.1.GA.tar.gz
   hibernate-annotations/3.2.1.GA.patch01-brew/src/hibernate-annotations-ANN-551.patch
   hibernate-annotations/3.2.1.GA.patch01-brew/src/hibernate-annotations-common-build_xml.patch
   hibernate-annotations/3.2.1.GA.patch01-brew/src/hibernate-annotations-jdstyle.css
Modified:
   hibernate-entitymanager/3.2.1.GA-brew/component-info.xml
Log:

Adding hibernate-annotations 3.2.1.GA.patch01-brew to the repository



Added: hibernate-annotations/3.2.1.GA.patch01-brew/component-info.xml
===================================================================
--- hibernate-annotations/3.2.1.GA.patch01-brew/component-info.xml	                        (rev 0)
+++ hibernate-annotations/3.2.1.GA.patch01-brew/component-info.xml	2007-08-24 19:48:00 UTC (rev 1138)
@@ -0,0 +1,24 @@
+<project name="hibernate-annotations-component-info">
+   <component id="hibernate-annotations"
+               licenseType="lgpl"
+               version="3.2.1.GA.patch01-brew"
+               projectHome="http://annotations.hibernate.org"
+      description="Annotations for Hibernate/EJB3 - Patch for ANN-551"
+      scm=":ext:cvs.devel.redhat.com:/cvs/dist/hibernate3-annotations"
+      tag="hibernate3-annotations-3_2_1-1_patch01_1jpp_ep1_1">
+      <!-- Built using JDK 5 -->
+      <artifact id="hibernate-annotations.jar"/>
+      <import componentref="hibernate">
+         <compatible version="3.2.0.GA"/>
+         <compatible version="3.2.1.GA"/>
+         <compatible version="3.2.3.GA"/>
+         <compatible version="3.2.4.SP1"/>         
+         <compatible version="3.2.4.SP1_CP01-brew"/>         
+      </import>
+      <export>
+         <include input="hibernate-annotations.jar"/>         
+      </export>
+      
+   </component>
+
+</project>

Added: hibernate-annotations/3.2.1.GA.patch01-brew/lib/hibernate-annotations.jar
===================================================================
(Binary files differ)


Property changes on: hibernate-annotations/3.2.1.GA.patch01-brew/lib/hibernate-annotations.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: hibernate-annotations/3.2.1.GA.patch01-brew/src/hibernate-annotations-3.2.1.GA.tar.gz
===================================================================
(Binary files differ)


Property changes on: hibernate-annotations/3.2.1.GA.patch01-brew/src/hibernate-annotations-3.2.1.GA.tar.gz
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: hibernate-annotations/3.2.1.GA.patch01-brew/src/hibernate-annotations-ANN-551.patch
===================================================================
--- hibernate-annotations/3.2.1.GA.patch01-brew/src/hibernate-annotations-ANN-551.patch	                        (rev 0)
+++ hibernate-annotations/3.2.1.GA.patch01-brew/src/hibernate-annotations-ANN-551.patch	2007-08-24 19:48:00 UTC (rev 1138)
@@ -0,0 +1,37 @@
+--- src/org/hibernate/cfg/AnnotationBinder.java.orig	2007-08-24 11:32:24.432112000 -0400
++++ src/org/hibernate/cfg/AnnotationBinder.java	2007-08-24 11:35:47.002337000 -0400
+@@ -10,6 +10,8 @@
+ import java.util.Map;
+ import java.util.Properties;
+ import java.util.Set;
++import java.util.Collections;
++import java.util.Comparator;
+ import javax.persistence.Basic;
+ import javax.persistence.Column;
+ import javax.persistence.DiscriminatorType;
+@@ -943,6 +945,12 @@
+ 
+ 		log.debug( "Processing " + propertyHolder.getEntityName() + " " + accessType + " annotation" );
+ 		List<XProperty> properties = annotatedClass.getDeclaredProperties( accessType );
++               //order so that property are used int he same order when binding native query
++               Collections.sort( properties, new Comparator<XProperty>() {
++                       public int compare(XProperty property1, XProperty property2) {
++                               return property1.getName().compareTo( property2.getName() );
++                       }
++               } );
+ 		for ( XProperty p : properties ) {
+ 			if ( !p.isTypeResolved() && !discoverTypeWithoutReflection( p ) && !mustBeSkipped( p, mappings ) ) {
+ 				throw new AnnotationException(
+--- test/org/hibernate/test/annotations/query/Chaos.java.orig	(.../Chaos.java)	(revision 11171)
++++ test/org/hibernate/test/annotations/query/Chaos.java	(.../Chaos.java)	(revision 11182)
+@@ -22,8 +22,8 @@
+  */
+ @Entity
+ @Table(name="CHAOS")
+- at SQLInsert( sql="INSERT INTO CHAOS(size, name, nickname, id) VALUES(?,upper(?),?,?)")
+- at SQLUpdate( sql="UPDATE CHAOS SET size = ?, name = upper(?), nickname = ? WHERE id = ?")
++ at SQLInsert( sql="INSERT INTO CHAOS(name, nickname, size, id) VALUES(upper(?),?,?,?)")
++ at SQLUpdate( sql="UPDATE CHAOS SET name = upper(?), nickname = ?, size = ? WHERE id = ?")
+ @SQLDelete( sql="DELETE CHAOS WHERE id = ?")
+ @SQLDeleteAll( sql="DELETE CHAOS")
+ @Loader(namedQuery = "chaos")

Added: hibernate-annotations/3.2.1.GA.patch01-brew/src/hibernate-annotations-common-build_xml.patch
===================================================================
--- hibernate-annotations/3.2.1.GA.patch01-brew/src/hibernate-annotations-common-build_xml.patch	                        (rev 0)
+++ hibernate-annotations/3.2.1.GA.patch01-brew/src/hibernate-annotations-common-build_xml.patch	2007-08-24 19:48:00 UTC (rev 1138)
@@ -0,0 +1,38 @@
+--- common-build.xml.sav	2006-05-13 20:08:02.000000000 -0400
++++ common-build.xml	2006-08-02 12:08:49.000000000 -0400
+@@ -39,7 +39,7 @@
+ 
+ 
+     <!-- set Hibernate core related properties -->
+-    <property name="hibernate-core.home" location="${common-build.basedir}/../../hibernate-3.2"/>
++    <property name="hibernate-core.home" location="${common-build.basedir}"/>
+     <property name="hibernate-core.jar" location="${hibernate-core.home}/hibernate3.jar"/>
+     <property name="hibernate-core.lib.dir" location="${hibernate-core.home}/lib"/>
+     <property name="hibernate-core.jdbc.dir" location="${hibernate-core.home}/lib"/>  <!-- for some reason jdbc.dir is renamed to lib instead of jdbc when doing a dist of hibernate3 -->
+@@ -225,7 +225,7 @@
+     <target name="instrument" depends="compiletest"
+ 			description="Instrument the persistent classes"> <!-- depends="jar" -->
+ 
+-		<taskdef name="instrument" classname="org.hibernate.tool.instrument.InstrumentTask">
++		<taskdef name="instrument" classname="org.hibernate.tool.instrument.javassist.InstrumentTask">
+ 			<classpath path="${classes.dir}"/>
+             <classpath path="${testclasses.dir}"/>         
+ 			<classpath refid="lib.class.path"/>
+@@ -320,9 +320,8 @@
+         	protected="true"
+         	version="true"
+         	windowtitle="${Name} API Documentation"
+-        	Overview="${doc.api.dir}/package.html"
+         	doctitle="${Name} API Documentation"
+-        	stylesheetfile="${hibernate-core.doc.api}/jdstyle.css"
++        	stylesheetfile="${doc.api.dir}/jdstyle.css"
+         	link="${javadoc}">
+         	<packageset dir="${src.dir}" defaultexcludes="yes" >
+ 		      <include name="**/*" />
+@@ -443,4 +442,4 @@
+ 		<cvs command="-q diff -u -N" output="patch.txt"/>
+ 	</target>
+ 
+-</project>
+\ No newline at end of file
++</project>

Added: hibernate-annotations/3.2.1.GA.patch01-brew/src/hibernate-annotations-jdstyle.css
===================================================================
--- hibernate-annotations/3.2.1.GA.patch01-brew/src/hibernate-annotations-jdstyle.css	                        (rev 0)
+++ hibernate-annotations/3.2.1.GA.patch01-brew/src/hibernate-annotations-jdstyle.css	2007-08-24 19:48:00 UTC (rev 1138)
@@ -0,0 +1,117 @@
+/* Javadoc style sheet */
+
+/* Define colors, fonts and other style attributes here to override the defaults  */
+
+/* Page background color */
+body { 	font-family: Arial;
+	background-color: white;
+	font-size: 10pt;
+ }
+td { 	font-family: Arial;
+	font-size: 10pt;
+ }
+/* Table colors */
+.TableHeadingColor     { background: #F4F4F4 }
+.TableSubHeadingColor  { background: #F4F4F4 }
+.TableRowColor         { background: #FFFFFF }
+
+/* Font used in left-hand frame lists */
+.FrameTitleFont   { font-size: normal; font-family: Arial }
+.FrameHeadingFont { font-size: normal; font-family: Arial }
+.FrameItemFont    { font-size: normal; font-family: Arial }
+
+/* Example of smaller, sans-serif font in frames */
+/* .FrameItemFont  { font-size: 10pt; font-family: Helvetica, Arial, sans-serif } */
+
+/* Navigation bar fonts and colors */
+.NavBarCell1    { background-color:#F4F4F4;}
+.NavBarCell1Rev { background-color:silver;}
+
+.NavBarFont1    { font-family: Arial, Helvetica, sans-serif; color:#000000;}
+.NavBarFont1Rev { font-family: Arial, Helvetica, sans-serif; color:#FFFFFF;}
+
+.NavBarCell2    { font-family: Arial, Helvetica, sans-serif; background-color:#FFFFFF;}
+.NavBarCell3    { font-family: Arial, Helvetica, sans-serif; background-color:#FFFFFF;}
+
+A {
+    color: #003399;
+}
+
+A:active {
+    color: #003399;
+}
+
+A:visited {
+    color: #888888;
+}
+
+P, OL, UL, LI, DL, DT, DD, BLOCKQUOTE {
+    color: #000000;
+}
+
+TD, TH, SPAN {
+    color: #000000;
+}
+
+BLOCKQUOTE {
+    margin-right: 0px;
+}
+
+
+/*H1, H2, H3, H4, H5, H6    {
+    color: #000000;
+    font-weight:500;
+    margin-top:10px;
+    padding-top:15px;
+}
+
+H1 { font-size: 150%; }
+H2 { font-size: 140%; }
+H3 { font-size: 110%; font-weight: bold; }
+H4 { font-size: 110%; font-weight: bold;}
+H5 { font-size: 100%; font-style: italic; }
+H6 { font-size: 100%; font-style: italic; }*/
+
+TT {
+font-size: 90%;
+    font-family: "Courier New", Courier, monospace;
+    color: #000000;
+}
+
+PRE {
+font-size: 90%;
+    padding: 5px;
+    border-style: solid;
+    border-width: 1px;
+    border-color: #CCCCCC;
+    background-color: #F4F4F4;
+}
+
+UL, OL, LI {
+    list-style: disc;
+}
+
+HR  {
+    width: 100%;
+    height: 1px;
+    background-color: #CCCCCC;
+    border-width: 0px;
+    padding: 0px;
+    color: #CCCCCC;
+}
+
+.variablelist { 
+    padding-top: 10; 
+    padding-bottom:10; 
+    margin:0;
+}
+
+.itemizedlist, UL { 
+    padding-top: 0; 
+    padding-bottom:0; 
+    margin:0; 
+}
+
+.term { 
+    font-weight:bold;
+}

Modified: hibernate-entitymanager/3.2.1.GA-brew/component-info.xml
===================================================================
--- hibernate-entitymanager/3.2.1.GA-brew/component-info.xml	2007-08-24 16:38:19 UTC (rev 1137)
+++ hibernate-entitymanager/3.2.1.GA-brew/component-info.xml	2007-08-24 19:48:00 UTC (rev 1138)
@@ -19,6 +19,7 @@
       <import componentref="hibernate-annotations">
          <compatible version="3.2.1.GA"/>
          <compatible version="3.2.1.GA-brew"/>
+         <compatible version="3.2.1.GA.patch01-brew"/>
       </import>
       <export>
          <include input="hibernate-entitymanager.jar"/>




More information about the jboss-cvs-commits mailing list