Hibernate SVN: r13297 - annotations/tags/v3_1_0_Beta5.
by hibernate-commits@lists.jboss.org
Author: epbernard
Date: 2007-08-15 20:23:14 -0400 (Wed, 15 Aug 2007)
New Revision: 13297
Added:
annotations/tags/v3_1_0_Beta5/doc/
Log:
Move annotations tags/annotations_v31beta5 to the new structure (v3_1_0_Beta5)
Copied: annotations/tags/v3_1_0_Beta5/doc (from rev 13296, tags/annotations_v31beta5/HibernateExt/metadata/doc)
17 years, 5 months
Hibernate SVN: r13296 - annotations/tags/v3_1_0_Beta5.
by hibernate-commits@lists.jboss.org
Author: epbernard
Date: 2007-08-15 20:23:13 -0400 (Wed, 15 Aug 2007)
New Revision: 13296
Added:
annotations/tags/v3_1_0_Beta5/changelog.txt
Log:
Move annotations tags/annotations_v31beta5 to the new structure (v3_1_0_Beta5)
Copied: annotations/tags/v3_1_0_Beta5/changelog.txt (from rev 13295, tags/annotations_v31beta5/HibernateExt/metadata/changelog.txt)
===================================================================
--- annotations/tags/v3_1_0_Beta5/changelog.txt (rev 0)
+++ annotations/tags/v3_1_0_Beta5/changelog.txt 2007-08-16 00:23:13 UTC (rev 13296)
@@ -0,0 +1,203 @@
+Hibernate Annotations Changelog
+===============================
+
+3.1beta5 Preview (14-09-2005)
+-----------------------------
+ * ANN-70 Lucene integration
+ * ANN-13 Support for referencedColumnName referencing non PK columns for @ManyToMany
+ * ANN-63 Use metadata.getUserName() when guessing Enum backing type (Scott Haug)
+ * ANN-38 Finish the optional=false support
+ * ANN-69 Expand the resource bundle message itself in the Validator framework
+ * ANN-68 Apply validator on a particular property (Jesus Marin)
+ * ANN-41 Allow field validations and validate private method (Chris Wood)
+ * ANN-75 Support named (native) query parameters (from Carlos Gonzalez)
+ * ANN-73 Use an eager strategy for the second join of a ManyToMany
+ * ANN-74 Allow configuration artefacts (hbm, classes) loading precedence
+ * ANN-79 Support collection of composite elements
+ * ANN-19 Annotations should support collections of primitive and core types
+ * ANN-77 Support primitive arrays
+ * ANN-20 Support dotted annotation when using overriding (Alexei Akhounov)
+ * ANN-55 @Proxy annotation should take proxyClass argument
+ * ANN-2 Bidirectional true @OneToOne
+ * ANN-80 @NotFound(action=NotFoundAction.IGNORE)
+ * ANN-57 @Table ignores unique contraint in association table
+ * ANN-3 Support of component inside SecondaryTable
+ * ANN-87 @InheritanceJoinColumn rename is incomplete
+ * ANN-81 ColumnDefinition not assigned when using @Column and @JoinColumn
+ * ANN-34 Second passes binded to HbmBinder.SecondPass
+ * NPE on Index and Unique constrains when column name has case inconsistency
+ * ANN-86 @Index not used on properties having no @Column
+ * ANN-49 Super class of Embeddable not mapped correctly (Alexei Akhounov)
+ * ANN-66 Null enums don't store to database correctly
+ * ANN-65 Validator ignores components (the DDL still ignores it)
+ * ANN-60 NPE when @EmbeddableSuperclass has a superclass @Entity
+ * ANN-90 mention usage of @Column together with @Id explicitly
+ * ANN-18 Document bean-level validator mecanism
+
+3.1beta4 Preview (04-08-2005)
+-----------------------------
+ * ANN-54 EnumType fails to find the Enum in setParameterValues(Properties)
+ * ANN-32 Support index creation
+ * ANN-22 Hibernate 3 Annotations should support all Id generators
+ * ANN-51 redeclaring id in entity subclass raises ClassCastException
+ * ANN-43 @MapKey throw exception if key is id or a component subproperty
+ * ANN-52 Exception when @OrderBy contains the id property or a component subproperty
+ * ANN-13 Support for referencedColumnName referencing non PK columns for @ManyToOne, @OneToOne and @OneToMany
+ * ANN-46 Raise a warning on @Filter on subclasses
+ * ANN-48 @UniqueConstraint reorders columns (Chris Wood)
+ * ANN-6 enum did not worked for enums persisted in string based columns (MySql and Oracle)
+ * ANN-8 array of primitive no longer create a non null column
+ * ANN-45 Proper support for @Basic byte[]
+ * ANN-44 Don't mandate to list embedded superclasses
+ * ANN-42 Don't mandate resultset to be defined before named native queries
+ * ANN-11 More robust support for enum persistence (wider range of SQL types)
+ * HBX-307 Remove @Serialized and support @Lob tagging of a serializable type
+
+3.1beta3 Preview (24-06-2005)
+-----------------------------
+ * Rename @AssociationTable to @JoinTable
+ * HBX-213 support of @IdClass
+ * change targetEntity from String to Class
+ * HBX-305 Support Java5 Enums
+ * Add @Basic(optional=false) and Lob(optional=false)
+ * HBX-284 AnnotationOverride in inheritance in conjunction with @EmbeddedSuperclass
+ * HBX-304 @AttributeOverride instead of @Embedded(override=@AttributeOverride) or @EmbeddedId(...)
+ * HBX-290 All collection binder exception now show the collection role
+ * HBX-299 Fix test suite error on MySql
+ * HBX-302 @MapKey(name="propertyName") to map a map using a property of the associated class as a map key
+ * HBX-201 @Formula on properties or fields.
+ * Support @EntityResult(discriminatorColumn)
+ * Relax List usage as per the spec (non indexed list are defaulted to bag semantic)
+ * HBX-300 enable HQL order by fragment using @javax.persistence.OrderBy
+ * HBX-298 FKs on association tables are forced not null
+ * HBX-297 Primitive types creates a non null constrained column if defaulted and not SINGLE_TABLE (HBX-301)
+ * HBX-287 @DiscriminatorFormula
+ * HBX-205 @OnDelete(action=OnDeleteAction.CASCADE) for joined subclasses and collections
+ * Change @OneToOne(usePkasFk=true) into @PrimaryKeyJoinColumn
+ * Rename @InheritanceJoinColumn/@InheritanceJoinColumns to @PrimaryKeyJoinColumn/@PrimaryKeyJoinColumns
+ * Support @Basic(temporalType=...)
+ * HBX-282 protect @ManyToMany from abusive not joined filters
+ * Align with @NamedNativeQuery/@NamedNativeQueries
+ * HBX-283 Better getter resolution
+ * HBX-75 Implicit inheritance join columns declaration in composite PK
+ * HBX-54 Explicit exception when @Id is missing
+ * HBX-210 Fix NPE when the @Id was on the superclass of the root entity in conjonction with @OneToOne use
+ * HBX-280/HBX-157 Support @EmbeddabledSuperclass
+
+3.0beta2 Preview (27-05-2005)
+-----------------------------
+ * HBX-87 fetching method is now used even when loading through a query
+ * Add the validate framework and bind it to the annotation binder.
+ * HBX-199 Support @Columns and thus multi-column properties (ie composite user types)
+ * HBX-206 Support @OrderBy and @Sort
+ * HBX-203/HBX-81 Support Hibernate cascade strategies through @Cascade (Pablo Nussembaum)
+ * HBX-47 Persist is cascaded on flush operation when using the EJB3 event listeners
+ * HBX-125 Support for named native SQL queries (not Scalar results)
+ * HBX-225 @Type annotation now work for @Id and @Version (Pablo Nussembaum, Emmanuel Bernard)
+ * HBX-248 TABLE_PER_CLASS no longer limited to leaf entities and use union-subclass as its strategy
+ * HBX-186 inheritance strategy no longer have to be defined on every entity (only on root entry)
+ * HBX-53 Annotated classes can be defined in any arbitrary order
+ * Support Array through @IndexColumn (Anthony Patricio)
+ * HBX-216 Ignore static fields and properties
+ * HBX-229/HBX-134 Filter javac generated methods that compensate type erasure aka bridge method (Rog�rio Gatto)
+ * HBX-184 Support List mappings through @IndexColumn (Matthiew Inger, Emmanuel Bernard)
+ * HBX-187 Move to a CollectionBinder structure (Matthiew Inger, Emmanuel Bernard)
+ * Fix of CascadeType.REMOVE
+
+3.0beta1 Preview (07-04-2005) based on the EJB3 Early Draft 2
+-------------------------------------------------------------
+ * support parameters in @Type (HBX-197)
+ * support @TypeDef at package and class level
+ * HBX-166 support @Lob for Character[],char[], String, byte[] and Byte[] (experimental)
+ * HBX-159/HBX-140 add @Filter(s) and @FilterDef(s) (Matthew Inger, Magnus Sandberg)
+ * HBX-44 @OneToOne support composite PK
+ * @OneToOne is supported except for true bidirectional @OneToOne
+ * Add @Cache annotation: allow to define caching on root entities and on collections (,eg @Cache(usage=CacheConcurrencyStrategy.TRANSACTIONAL, region="specificCacheRegion") )
+ * Support @OneToMany default (ie using an association table)
+ * HBX-164 insertable/updatable of @JoinColumn now work in @ManyToOne processing (Mario Ivankovits, Emmanuel Bernard)
+ * HBX-153 @Id(generate=GeneratorType.AUTO, generator="my_potential_sequence") now work (Pablo Nussembaum)
+ * Support @ManyToMany wo @AssociationTable (ie defaults)
+ * Support @ManyToMany(mappedBy)
+ * Support @OneToMany(mappedBy) (no JoinColumn needed on the @OneToMany side)
+ * Appropriate default value when no @JoinColumn is defined in a ManyToOne
+ * rename @GeneratorTable to @GeneratedIdTable
+ * rename CREATE to PERSIST, add REFRESH cascade style
+ * support Mapping Defaults for Non-Relationship Fields or Properties algorithm as defined in the EJB3 spec
+ * support @Serialized
+ * support @Lob for java.sql.Clob and java.sql.Blob
+ * allow embedded object declaration wo @Embeddable (if @Embedded or @EmbeddedId is present in the property)
+ * support for @EmbeddedId
+ * rename DependentAttribute to AttributeOverride, Dependent to Embedded and DependentObject to Embeddable
+ * support @ManyToOne in embedded objects
+ * support for @NamedQuery and @NamedQueries (EJBQL)
+ * move javax.ejb.* into javax.persistence.* and update copyright header
+
+3.0alpha3 (28-02-2005)
+----------------------
+* HBX-116 Support for Where clause in classes and collections @Where(clause="")
+* HBX-115 Support for class proxying configuration: @Proxy(lazy=false, proxyClassName="my.Interface")
+* HBX-88 Support for hibernate type abstraction through @Type (only on basic properties for now)
+* HBX-108 Support @BatchSize(size=n) for entities and collections
+* HBX-107 implements @org.hibernate.annotations.Entity
+* HBX-103 handle abstract classes
+* HBX-83 precision & scale support for column (Bogdan Ghidireac)
+
+3.0alpha2 (25-01-2005)
+----------------------
+* HBX-61 Support for @UniqueConstraint (except primaryKey=true)
+* HBX-60 Support for a proper @TableGenerator (using MultipleHiLoPerTableGenerator)
+* HBX-63 Support @GeneratorTable
+* HBX-68 Add declarative configuration of annotated classes
+* HBX-74 Rollback the HB-1315 fix: dialect no longer have to be set in hibernate.properties
+
+
+Hibernate-annotations-3.0alpha1 based on the EJB3 Early Draft 1 (6.01.2005)
+---------------------------------------------------------------------------
+* Support for EJB3 annotations:
+ - @Transient
+ - @Column (not primaryKey)
+ - @JoinColumn (referencedColumnName - only for a reference to a PK, not primaryKey)
+ - @Version
+ - @Basic
+ - @Entity
+ - @Table (not uniqueConstraints)
+ - @AccessType
+ - @Id
+ - @CascadeType
+ - @FetchType
+ - @GeneratorType (NONE, IDENTITY, TABLE, SEQUENCE)
+ - @TableGenerator (with scope visibility)
+ - @SequenceGenerator (with scope visibility, does not support initialValue() and allocationSize())
+ - *not* @GeneratorTable (will have to write a new TableHiloGenerator, but it can wait)
+ - @ManyToOne (not optional)
+ - @OneToMany (Set and Collection, generics version or not, JoinColumn not guessed)
+ - @OneToOne
+ but not optional
+ no composite PK/FK
+ - @ManyToMany
+ - @AssociationTable (Has to be on both sides)
+ - @Inheritance
+ - @InheritanceType (has to be defined on every classes of the hierarchy for JOINED strategy,
+ not very clear about the TABLE_PER_CLASS strategy)
+ - @DiscriminatorColumn
+ - @DiscriminatorType
+ - @InheritanceJoinColumn
+ - @InheritanceJoinColumns
+ this annotation for Composite PK Entities has to be explicit, I do not respect the implicit semantic of the EJB3 spec
+ - @SecondaryTable (@OneToMany @JoinColumn(secondaryTable="..." does not work yet due to H3 core issue HHH-36
+ - @SecondaryTables
+ this annotation for Composite PK Entities has to be explicit, I do not respect the implicit semantic of the EJB3 spec
+ - @DependentObject
+ - @Dependent
+ - @DependentAttribute (only for basic properties as per the spec)
+ - @Id in conjunction with @DependentObject (composite primary keys)
+ - @JoinColumns in conjunction with @ManytoOne, @OneToMany, @ManytoMany
+ - note that the composite FK columns have to be in the same table (no != secondary tables). This is probably a weird case and certainly a not recommanded one.
+
+
+Still missing or incomplete features compared to the EJB3 spec
+--------------------------------------------------------------
+ - use of referencedColumnName for column other than the PK ones @ManyToMany (HBX-62)
+ - Support for a true bidirectional one to one relationship (HBX-177)
+ - support for initialValue and allocationSize in @SequenceGenerator (HBX-59)
+ - finish support of optional=false (HBX-190)
\ No newline at end of file
17 years, 5 months
Hibernate SVN: r13295 - annotations/tags/v3_1_0_Beta5.
by hibernate-commits@lists.jboss.org
Author: epbernard
Date: 2007-08-15 20:23:11 -0400 (Wed, 15 Aug 2007)
New Revision: 13295
Added:
annotations/tags/v3_1_0_Beta5/build.xml
Log:
Move annotations tags/annotations_v31beta5 to the new structure (v3_1_0_Beta5)
Copied: annotations/tags/v3_1_0_Beta5/build.xml (from rev 13294, tags/annotations_v31beta5/HibernateExt/metadata/build.xml)
===================================================================
--- annotations/tags/v3_1_0_Beta5/build.xml (rev 0)
+++ annotations/tags/v3_1_0_Beta5/build.xml 2007-08-16 00:23:11 UTC (rev 13295)
@@ -0,0 +1,149 @@
+<!--
+
+ Hibernate Annotations ANT build script.
+
+ You need JDK 5.0 installed to build Hibernate Annotations.
+
+-->
+
+<project name="HibernateAnnotations" default="dist" basedir=".">
+
+ <!-- Give user a chance to override without editing this file
+ (and without typing -D each time it compiles it) -->
+ <property file="build.properties"/>
+ <property file="${user.home}/.ant.properties"/>
+
+ <!-- Name of project and version, used to create filenames -->
+ <property name="Name" value="Hibernate Annotations"/>
+ <property name="name" value="hibernate-annotations"/>
+ <property name="version" value="3.1beta5"/>
+ <property name="javadoc.packagenames" value="org.hibernate.*"/>
+ <property name="jdbc.dir" value="jdbc"/>
+ <property name="copy.test" value="true"/>
+ <property name="common.dir" value="../common"/>
+
+ <import file="${common.dir}/common-build.xml"/>
+
+ <target name="compile" depends="init" description="Compile the Java source code">
+ <available
+ classname="org.eclipse.core.launcher.Main"
+ property="build.compiler"
+ value="org.eclipse.jdt.core.JDTCompilerAdapter"
+ classpath="${java.class.path}"/>
+ <javac
+ srcdir="${src.dir}"
+ destdir="${classes.dir}"
+ classpathref="lib.class.path"
+ debug="${javac.debug}"
+ optimize="${javac.optimize}"
+ nowarn="on"
+ source="1.5">
+ <src path="${src.dir}"/>
+ </javac>
+ </target>
+
+ <target name="compiletest" depends="compile" description="Compile the tests">
+ <available
+ classname="org.eclipse.core.launcher.Main"
+ property="build.compiler"
+ value="org.eclipse.jdt.core.JDTCompilerAdapter"
+ classpath="${java.class.path}"/>
+ <javac
+ srcdir="${test.dir}"
+ destdir="${classes.dir}"
+ classpathref="lib.class.path"
+ debug="${javac.debug}"
+ optimize="${javac.optimize}"
+ nowarn="on"
+ source="1.5">
+ <src path="${src.dir}"/>
+ </javac>
+ </target>
+
+ <target name="junit" depends="compiletest">
+ <mkdir dir="test_output"/>
+ <junit fork="yes" printsummary="yes" haltonfailure="yes">
+ <classpath>
+ <fileset dir="${jdbc.dir}">
+ <include name="**/*.jar"/>
+ <include name="**/*.zip"/>
+ </fileset>
+ <path refid="lib.class.path"/>
+ <pathelement path="${classes.dir}"/>
+ <pathelement path="${src.dir}"/> <!-- pick up properties from here -->
+ <pathelement path="${test.dir}"/> <!-- pick up mappings from here -->
+ </classpath>
+ <formatter type="plain"/>
+ <formatter type="xml"/>
+ <batchtest fork="yes" todir="test_output" haltonfailure="no">
+ <fileset dir="${classes.dir}">
+ <include name="**/*Test.class"/>
+ </fileset>
+ </batchtest>
+ </junit>
+ </target>
+
+ <!-- Run a single unit test. -->
+ <target name="junitsingle" depends="compiletest" description="Run a single test suite (requires testname and jdbc.driver properties)">
+ <mkdir dir="test_output"/>
+ <junit printsummary="yes" fork="yes" haltonfailure="yes">
+ <classpath>
+ <fileset dir="${jdbc.dir}">
+ <include name="**/*.jar"/>
+ <include name="**/*.zip"/>
+ </fileset>
+ <path refid="lib.class.path"/>
+ <pathelement path="${classes.dir}"/>
+ <pathelement path="${src.dir}"/> <!-- pick up properties from here -->
+ <pathelement path="${test.dir}"/> <!-- pick up mappings from here -->
+ </classpath>
+ <formatter type="plain"/>
+ <formatter type="xml"/>
+ <test fork="yes" todir="test_output" haltonfailure="no" name="${testname}"/>
+ </junit>
+ </target>
+
+ <target name="jar" depends="compile" description="Build the distribution .jar file">
+ <mkdir dir="${classes.dir}/META-INF"/>
+ <manifest file="${classes.dir}/META-INF/MANIFEST.MF">
+ <attribute name="Product" value="${Name}"/>
+ <attribute name="Version" value="${version}"/>
+ </manifest>
+ <antcall target="common-build.jar"/>
+ </target>
+
+ <!-- target name="javadoc" description="Compile the Javadoc API documentation to dist dir">
+ <echo>Skipping java doc since ant's javadoc task cannot handle an alternative javadoc</echo>
+ </target -->
+
+ <!-- Some of this can probably be moved to common-build... -->
+ <target name="dist" depends="jar,javadoc,copysource,copytest,copylib,extras" description="Build everything">
+
+ <ant inheritall="false" dir="${basedir}/doc/reference"/>
+ <copy todir="${dist.dir}/doc/reference" failonerror="false">
+ <fileset dir="${basedir}/doc/reference/build">
+ <include name="**/*.*"/>
+ </fileset>
+ </copy>
+
+ <copy todir="${dist.dir}" failonerror="false">
+ <fileset dir="${common.dir}">
+ <include name="common-build.xml"/>
+ </fileset>
+ </copy>
+ <copy file="${basedir}/build.properties.dist" tofile="${dist.dir}/build.properties" failonerror="false">
+ </copy>
+ <antcall target="common-build.dist"/>
+ </target>
+
+ <target name="zip-dist" description="zip the dist">
+ <zip zipfile = "${dist.dir}-${version}.zip">
+ <zipfileset prefix="${name}-${version}" dir="${dist.dir}"/>
+ </zip>
+ <tar compression="gzip" tarfile="${dist.dir}-${version}.tar.gz">
+ <tarfileset prefix="${name}-${version}" dir="${dist.dir}"/>
+ </tar>
+ </target>
+
+
+</project>
17 years, 5 months
Hibernate SVN: r13294 - annotations/tags/v3_1_0_Beta5.
by hibernate-commits@lists.jboss.org
Author: epbernard
Date: 2007-08-15 20:23:09 -0400 (Wed, 15 Aug 2007)
New Revision: 13294
Added:
annotations/tags/v3_1_0_Beta5/.cvsignore
Log:
Move annotations tags/annotations_v31beta5 to the new structure (v3_1_0_Beta5)
Copied: annotations/tags/v3_1_0_Beta5/.cvsignore (from rev 13293, tags/annotations_v31beta5/HibernateExt/metadata/.cvsignore)
===================================================================
--- annotations/tags/v3_1_0_Beta5/.cvsignore (rev 0)
+++ annotations/tags/v3_1_0_Beta5/.cvsignore 2007-08-16 00:23:09 UTC (rev 13294)
@@ -0,0 +1,8 @@
+target
+build
+build.properties
+test_output
+testout
+common-build.xml
+javadoc.bat
+build.properties
17 years, 5 months
Hibernate SVN: r13293 - annotations/tags.
by hibernate-commits@lists.jboss.org
Author: epbernard
Date: 2007-08-15 20:23:07 -0400 (Wed, 15 Aug 2007)
New Revision: 13293
Added:
annotations/tags/v3_1_0_Beta5/
Log:
Create annotations v3_1_0_Beta5 structure
17 years, 5 months
Hibernate SVN: r13292 - jpa-api/tags.
by hibernate-commits@lists.jboss.org
Author: epbernard
Date: 2007-08-15 20:23:00 -0400 (Wed, 15 Aug 2007)
New Revision: 13292
Added:
jpa-api/tags/annotations_v3_1_0_Beta6/
Log:
Create jpa-api annotations_v3_1_0_Beta6 structure
17 years, 5 months
Hibernate SVN: r13291 - common/tags/annotations_v3_1_0_Beta6.
by hibernate-commits@lists.jboss.org
Author: epbernard
Date: 2007-08-15 20:22:57 -0400 (Wed, 15 Aug 2007)
New Revision: 13291
Added:
common/tags/annotations_v3_1_0_Beta6/common-build.xml
Log:
Move common tags/annotations_v31beta6 to the new structure (annotations_v3_1_0_Beta6)
Copied: common/tags/annotations_v3_1_0_Beta6/common-build.xml (from rev 13290, tags/annotations_v31beta6/HibernateExt/common/common-build.xml)
===================================================================
--- common/tags/annotations_v3_1_0_Beta6/common-build.xml (rev 0)
+++ common/tags/annotations_v3_1_0_Beta6/common-build.xml 2007-08-16 00:22:57 UTC (rev 13291)
@@ -0,0 +1,363 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project name="common-build" default="dist">
+ <description>Common properties and targets for the HibernateExt project</description>
+
+ <!-- my.basedir property can be used to refer to files/directories relatively to the common-build.xml file -->
+ <dirname property="common-build.basedir" file="${ant.file.common-build}"/>
+
+ <!-- Give user a chance to override without editing this file
+ (and without typing -D each time it compiles it) -->
+ <property file="${common-build.basedir}/build.properties"/>
+ <property file="${user.home}/.ant.properties"/>
+
+ <property name="src.dir" location="src/java"/>
+ <property name="test.dir" location="src/test"/>
+ <property name="lib.dir" location="lib"/>
+ <property name="build.dir" location="build"/>
+ <property name="classes.dir" location="${build.dir}/classes"/>
+ <property name="dist.target.dir" location="target"/>
+ <property name="dist.dir" location="${dist.target.dir}/${name}"/>
+ <property name="doc.dir" location="doc"/>
+ <property name="doc.api.dir" location="${doc.dir}/api"/>
+ <property name="doc.reference.dir" location="${doc.dir}/reference"/>
+
+ <property name="dist.doc.dir" location="${dist.dir}/doc"/>
+ <property name="dist.api.dir" location="${dist.dir}/doc/api"/>
+
+ <property name="dist.src.dir" location="${dist.dir}/src"/>
+ <property name="dist.test.dir" location="${dist.dir}/test"/>
+ <property name="dist.lib.dir" location="${dist.dir}/lib"/>
+ <property name="jar.name" value="${name}"/>
+ <property name="jar.file.name" value="${dist.dir}/${jar.name}.jar"/>
+
+ <property name="javadoc" value="http://java.sun.com/j2se/1.4/docs/api"/>
+ <property name="javac.debug" value="on"/>
+ <property name="javac.optimize" value="off"/>
+
+
+ <!-- set Hibernate core related properties -->
+ <property name="hibernate-core.home" location="${common-build.basedir}/../../hibernate-3.1"/>
+ <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 -->
+ <property name="hibernate-core.doc.api" location="${hibernate-core.home}/doc/api"/>
+ <property name="hibernate-cvs.doc.reference" location="${common-build.basedir}/../../Hibernate3/doc/reference"/>
+
+ <!--
+ Explicitly define tasks from ant..
+ Unfortunately, checkstyle-all.jar contains it's own version of ANTLR, so ANTLR cannot be in the classpath.
+ -->
+ <!-- Emmanuel: Removed antlr, shouldn't be useful in Ext package...
+ taskdef name="antlr" classname="org.apache.tools.ant.taskdefs.optional.ANTLR">
+ <classpath>
+ <pathelement location="${hibernate-core.lib.dir}/antlr-2.7.2.jar"/>
+ <pathelement location="${hibernate-core.lib.dir}/ant-antlr-1.6.1.jar"/>
+ </classpath>
+ </taskdef -->
+
+ <taskdef name="junit" classname="org.apache.tools.ant.taskdefs.optional.junit.JUnitTask">
+ <classpath>
+ <fileset dir="${hibernate-core.lib.dir}">
+ <include name="junit-*.jar"/>
+ <include name="ant-junit-*.jar"/>
+ </fileset>
+ </classpath>
+ </taskdef>
+
+ <taskdef name="junitreport" classname="org.apache.tools.ant.taskdefs.optional.junit.XMLResultAggregator">
+ <classpath>
+ <fileset dir="${hibernate-core.lib.dir}">
+ <include name="junit-*.jar"/>
+ <include name="ant-junit-*.jar"/>
+ </fileset>
+ </classpath>
+ </taskdef>
+
+ <path id="lib.class.path">
+ <path location="${hibernate-core.jar}"></path>
+ <fileset dir="${hibernate-core.lib.dir}">
+ <include name="*.jar"/>
+ </fileset>
+ <fileset dir="${lib.dir}">
+ <include name="*.jar"/>
+ </fileset>
+ </path>
+
+ <patternset id="support.files">
+ <include name="**/*.jpg"/>
+ <include name="**/*.gif"/>
+ <include name="**/*.dtd"/>
+ <include name="**/*.xml"/>
+ <include name="**/*.xslt"/>
+
+ <!-- exclude everything we don't want in the jar -->
+ <exclude name="${build.dir}/**/*"/>
+ <exclude name="${doc.dir}/**/*"/>
+ <exclude name="classes/**/*"/>
+ <exclude name="build.xml"/>
+ <exclude name="**/*.properties"/>
+ <exclude name="**/*.ccf"/>
+ <exclude name="**/*.cfg.xml"/>
+ <exclude name="**/ehcache.xml"/>
+ </patternset>
+
+ <patternset id="source.files">
+ <include name="**/*.java"/>
+ <include name="**/*.properties"/>
+ </patternset>
+
+ <!-- junit paths/filesets -->
+ <fileset dir="${classes.dir}" id="junit.batchtestset">
+ <include name="**/*Test.class"/>
+ </fileset>
+
+ <path id="testsrc.path">
+ <pathelement location="${test.dir}"/>
+ </path>
+
+ <path id="junit.classpath">
+ <fileset dir="${lib.dir}">
+ <include name="*.jar"/>
+ </fileset>
+ <pathelement path="${classes.dir}"/>
+ <path refid="lib.class.path"/>
+ <path refid="junit.moduleclasspath"/>
+ </path>
+
+ <!-- Tasks -->
+
+ <target name="clean" description="Cleans up build and dist directories">
+ <delete dir="${build.dir}"/>
+ <delete dir="${dist.target.dir}"/>
+ </target>
+
+ <target name="init" description="Initialize the build">
+ <tstamp>
+ <format property="subversion" pattern="yyyy-MM-dd hh:mm:ss"/>
+ </tstamp>
+ <echo message="Build ${Name}-${version} (${subversion})"/>
+ <mkdir dir="${classes.dir}"/>
+ <copy todir="${classes.dir}">
+ <fileset dir="${src.dir}">
+ <patternset refid="support.files"/>
+ </fileset>
+ </copy>
+ <copy todir="${build.dir}">
+ <fileset dir=".">
+ <include name="readme.txt"/>
+ <include name="lgpl.txt"/>
+ </fileset>
+ </copy>
+
+ <available file="${hibernate-core.jar}" type="file" property="hibernate-core.jar.available"/>
+ <fail unless="hibernate-core.jar.available" message="Cannot locate hibernate-core.jar: ${hibernate-core.jar}"/>
+ </target>
+
+ <target name="compile" depends="init" description="Compile the Java source code">
+ <available
+ classname="org.eclipse.core.launcher.Main"
+ property="build.compiler"
+ value="org.eclipse.jdt.core.JDTCompilerAdapter"
+ classpath="${java.class.path}"/>
+ <javac
+ target="1.4"
+ source="1.4"
+ srcdir="${src.dir}"
+ destdir="${classes.dir}"
+ classpathref="lib.class.path"
+ debug="${javac.debug}"
+ optimize="${javac.optimize}"
+ nowarn="on">
+ </javac>
+ </target>
+
+ <target name="compiletest" depends="compile" description="Compile the tests">
+ <available
+ classname="org.eclipse.core.launcher.Main"
+ property="build.compiler"
+ value="org.eclipse.jdt.core.JDTCompilerAdapter"
+ classpath="${java.class.path}"/>
+ <javac
+ destdir="${classes.dir}"
+ classpathref="lib.class.path"
+ debug="${javac.debug}"
+ optimize="${javac.optimize}"
+ nowarn="on">
+ <src refid="testsrc.path"/>
+ </javac>
+ </target>
+
+ <target name="copytest" description="Copy tests to dist dir" if="copy.test" >
+ <mkdir dir="${dist.test.dir}"/>
+ <copy todir="${dist.test.dir}">
+ <fileset dir="${test.dir}"/>
+ </copy>
+ </target>
+
+ <target name="copysource" depends="copytest" description="Copy sources to dist dir">
+ <mkdir dir="${dist.src.dir}"/>
+ <copy todir="${dist.src.dir}">
+ <fileset dir="${src.dir}">
+ <patternset refid="source.files"/>
+ </fileset>
+ <fileset dir="${src.dir}">
+ <patternset refid="support.files"/>
+ </fileset>
+ </copy>
+ <mkdir dir="${dist.src.dir}"/>
+ <copy todir="${dist.src.dir}">
+ <fileset dir="${src.dir}">
+ <patternset refid="source.files"/>
+ </fileset>
+ <fileset dir="${src.dir}">
+ <patternset refid="support.files"/>
+ </fileset>
+ </copy>
+ </target>
+
+ <target name="copylib" description="Copy jars to lib dir">
+ <mkdir dir="${dist.lib.dir}"/>
+ <copy todir="${dist.lib.dir}">
+ <fileset dir="${lib.dir}">
+ <include name="*.jar"/>
+ <exclude name="log4j.jar"/>
+ <exclude name="checkstyle*.jar"/>
+ <include name="*.txt"/>
+ </fileset>
+ </copy>
+ </target>
+
+ <target name="copydoc" description="Copy doc to dist dir" if="copy.doc">
+ <mkdir dir="${dist.doc.dir}"/>
+ <copy todir="${dist.doc.dir}">
+ <fileset dir="${doc.dir}">
+ <include name="**/*.html"/>
+ </fileset>
+ </copy>
+ </target>
+
+ <target name="jar" depends="compile" description="Build the distribution .jar file">
+ <mkdir dir="${dist.dir}"/>
+ <jar filesetmanifest="merge" jarfile="${jar.file.name}" basedir="${classes.dir}"/>
+ </target>
+
+ <!-- DOCUMENTATION -->
+
+ <target name="javadoc" description="Compile the Javadoc API documentation to dist dir">
+ <mkdir dir="${dist.api.dir}"/>
+ <javadoc
+ packagenames="${javadoc.packagenames}"
+ classpathref="lib.class.path"
+ destdir="${dist.api.dir}"
+ use="true"
+ 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"
+ link="${javadoc}">
+ <packageset dir="${src.dir}" defaultexcludes="yes" >
+ <include name="**/*" />
+ </packageset>
+ </javadoc>
+
+
+ </target>
+
+
+ <target name="extras" description="Copies miscellaneous files to root dir">
+ <copy todir="${dist.dir}/bin" failonerror="false">
+ <fileset dir="bin">
+ <include name="*.bat"/>
+ </fileset>
+ </copy>
+ <copy file="readme.txt" todir="${dist.dir}"/>
+ <copy file="lgpl.txt" todir="${dist.dir}"/>
+ <copy file="changelog.txt" todir="${dist.dir}"/>
+ <copy file="build.xml" todir="${dist.dir}"/>
+ <replace file="${dist.dir}/build.xml">
+ <replacetoken><![CDATA[../${name}-${version}]]></replacetoken>
+ <replacevalue><![CDATA[../${name}]]></replacevalue>
+ </replace>
+ </target>
+
+ <target name="dist" depends="jar,javadoc,copysource,copylib,copydoc,extras" description="Build everything">
+ <zip zipfile = "${dist.dir}-${version}.zip">
+ <zipfileset prefix="${name}-${version}" dir="${dist.dir}"/>
+ </zip>
+ <tar compression="gzip" tarfile="${dist.dir}-${version}.tar.gz">
+ <tarfileset prefix="${name}-${version}" dir="${dist.dir}"/>
+ </tar>
+ </target>
+
+ <target name="info" description="Echoes useful system properties">
+ <echo message="java.vm.info=${java.vm.info}"/>
+ <echo message="java.vm.name=${java.vm.name}"/>
+ <echo message="java.vm.vendor=${java.vm.vendor}"/>
+ <echo message="java.vm.version=${java.vm.version}"/>
+ <echo message="os.arch=${os.arch}"/>
+ <echo message="os.name=${os.name}"/>
+ <echo message="os.version=${os.version}"/>
+ <echo message="java.home = ${java.home}"/>
+ <echo message="java.class.path = ${java.class.path}"/>
+ <echo message="build.compiler = ${build.compiler}"/>
+ <echo message="file.encoding=${file.encoding}"/>
+ <echo message="user.home = ${user.home}"/>
+ <echo message="user.language=${user.language}"/>
+ </target>
+
+ <target name="junit" depends="compiletest">
+ <mkdir dir="test_output"/>
+ <junit printsummary="yes" haltonfailure="yes" forkmode="once">
+ <classpath refid="junit.classpath"/>
+ <formatter type="plain"/>
+ <formatter type="xml"/>
+ <batchtest fork="yes" todir="test_output" haltonfailure="no">
+ <fileset refid="junit.batchtestset"/>
+ </batchtest>
+ </junit>
+ </target>
+
+ <target name="junitreport" depends="">
+ <junitreport todir="./test_output">
+ <fileset dir="test_output">
+ <include name="TEST-*.xml"/>
+ </fileset>
+ <report format="frames" todir="./test_output"/>
+ </junitreport>
+ </target>
+
+ <target name="run" depends="compile" description="Run Hibernate Console">
+ <java classname="org.hibernate.console.Start" classpathref="lib.class.path" fork="true">
+ <classpath>
+ <path location="${build.dir}"/>
+ </classpath>
+ </java>
+ </target>
+
+
+ <target name="checkstyle" description="Check coding style">
+ <taskdef resource="checkstyletask.properties">
+ <classpath>
+ <path refid="lib.class.path"/>
+ <fileset dir="${common-build.basedir}/lib">
+ <include name="checkstyle*.jar"/>
+ </fileset>
+ </classpath>
+ </taskdef>
+
+ <checkstyle config="${common-build.basedir}/checkstyle_checks.xml">
+ <fileset dir="${src.dir}">
+ <include name="**/*.java"/>
+ </fileset>
+ <formatter type="plain"/>
+ </checkstyle>
+ </target>
+
+ <target name="patch" depends="checkstyle"
+ description="Create a patch">
+ <cvs command="-q diff -u -N" output="patch.txt"/>
+ </target>
+
+</project>
\ No newline at end of file
17 years, 5 months
Hibernate SVN: r13290 - common/tags/annotations_v3_1_0_Beta6.
by hibernate-commits@lists.jboss.org
Author: epbernard
Date: 2007-08-15 20:22:56 -0400 (Wed, 15 Aug 2007)
New Revision: 13290
Added:
common/tags/annotations_v3_1_0_Beta6/checkstyle_checks.xml
Log:
Move common tags/annotations_v31beta6 to the new structure (annotations_v3_1_0_Beta6)
Copied: common/tags/annotations_v3_1_0_Beta6/checkstyle_checks.xml (from rev 13289, tags/annotations_v31beta6/HibernateExt/common/checkstyle_checks.xml)
===================================================================
--- common/tags/annotations_v3_1_0_Beta6/checkstyle_checks.xml (rev 0)
+++ common/tags/annotations_v3_1_0_Beta6/checkstyle_checks.xml 2007-08-16 00:22:56 UTC (rev 13290)
@@ -0,0 +1,119 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE module PUBLIC "-//Puppy Crawl//DTD Check Configuration 1.1//EN" "http://www.puppycrawl.com/dtds/configuration_1_1.dtd">
+
+<module name="Checker">
+ <module name="TreeWalker">
+ <module name="com.puppycrawl.tools.checkstyle.checks.blocks.AvoidNestedBlocksCheck">
+ <property name="severity" value="warning"/>
+ </module>
+ <module name="com.puppycrawl.tools.checkstyle.checks.imports.AvoidStarImportCheck">
+ <property name="severity" value="warning"/>
+ </module>
+ <module name="com.puppycrawl.tools.checkstyle.checks.naming.ConstantNameCheck">
+ <property name="format" value="^[A-Z](_?[A-Z0-9]+)*$|log"/>
+ <property name="severity" value="warning"/>
+ </module>
+ <module name="com.puppycrawl.tools.checkstyle.checks.coding.DoubleCheckedLockingCheck">
+ <property name="severity" value="warning"/>
+ </module>
+ <module name="com.puppycrawl.tools.checkstyle.checks.coding.EmptyStatementCheck">
+ <property name="severity" value="warning"/>
+ </module>
+ <module name="com.puppycrawl.tools.checkstyle.checks.coding.EqualsHashCodeCheck">
+ <property name="severity" value="warning"/>
+ </module>
+ <module name="com.puppycrawl.tools.checkstyle.checks.design.FinalClassCheck">
+ <property name="severity" value="warning"/>
+ </module>
+ <module name="com.puppycrawl.tools.checkstyle.checks.GenericIllegalRegexpCheck">
+ <property name="format" value="\(\(|\)\)"/>
+ <property name="ignoreCase" value="false"/>
+ <property name="message" value="stacked parentheses"/>
+ <property name="severity" value="warning"/>
+ </module>
+ <module name="com.puppycrawl.tools.checkstyle.checks.coding.HiddenFieldCheck">
+ <property name="severity" value="warning"/>
+ <property name="tokens" value="VARIABLE_DEF"/>
+ </module>
+ <module name="com.puppycrawl.tools.checkstyle.checks.design.HideUtilityClassConstructorCheck">
+ <property name="severity" value="warning"/>
+ </module>
+ <module name="com.puppycrawl.tools.checkstyle.checks.coding.IllegalInstantiationCheck">
+ <property name="classes" value="{}"/>
+ <property name="severity" value="warning"/>
+ </module>
+ <module name="com.puppycrawl.tools.checkstyle.checks.coding.InnerAssignmentCheck">
+ <property name="severity" value="warning"/>
+ <property name="tokens" value="ASSIGN, BAND_ASSIGN, BOR_ASSIGN, BSR_ASSIGN, BXOR_ASSIGN, DIV_ASSIGN, MINUS_ASSIGN, MOD_ASSIGN, PLUS_ASSIGN, SL_ASSIGN, SR_ASSIGN, STAR_ASSIGN"/>
+ </module>
+ <module name="com.puppycrawl.tools.checkstyle.checks.design.InterfaceIsTypeCheck">
+ <property name="allowMarkerInterfaces" value="true"/>
+ <property name="severity" value="warning"/>
+ </module>
+ <module name="com.puppycrawl.tools.checkstyle.checks.blocks.LeftCurlyCheck">
+ <property name="maxLineLength" value="80"/>
+ <property name="option" value="eol"/>
+ <property name="severity" value="warning"/>
+ <property name="tokens" value="CLASS_DEF, CTOR_DEF, INTERFACE_DEF, LITERAL_CATCH, LITERAL_DO, LITERAL_ELSE, LITERAL_FINALLY, LITERAL_FOR, LITERAL_IF, LITERAL_SWITCH, LITERAL_SYNCHRONIZED, LITERAL_TRY, LITERAL_WHILE, METHOD_DEF"/>
+ </module>
+ <module name="com.puppycrawl.tools.checkstyle.checks.naming.LocalFinalVariableNameCheck">
+ <property name="format" value="^[a-z][a-zA-Z0-9]*$"/>
+ <property name="severity" value="warning"/>
+ </module>
+ <module name="com.puppycrawl.tools.checkstyle.checks.naming.LocalVariableNameCheck">
+ <property name="format" value="^[a-z][a-zA-Z0-9]*$"/>
+ <property name="severity" value="warning"/>
+ </module>
+ <module name="com.puppycrawl.tools.checkstyle.checks.naming.MemberNameCheck">
+ <property name="format" value="^[a-z][a-zA-Z0-9]*$"/>
+ <property name="severity" value="warning"/>
+ </module>
+ <module name="com.puppycrawl.tools.checkstyle.checks.naming.MethodNameCheck">
+ <property name="format" value="^[a-z][a-zA-Z0-9]*$"/>
+ <property name="severity" value="warning"/>
+ </module>
+ <module name="com.puppycrawl.tools.checkstyle.checks.modifier.ModifierOrderCheck">
+ <property name="severity" value="warning"/>
+ </module>
+ <module name="com.puppycrawl.tools.checkstyle.checks.blocks.NeedBracesCheck">
+ <property name="severity" value="warning"/>
+ <property name="tokens" value="LITERAL_DO, LITERAL_ELSE"/>
+ </module>
+ <module name="com.puppycrawl.tools.checkstyle.checks.naming.PackageNameCheck">
+ <property name="format" value="^[a-z]+(\.[a-zA-Z_][a-zA-Z0-9_]*)*$"/>
+ <property name="severity" value="warning"/>
+ </module>
+ <module name="com.puppycrawl.tools.checkstyle.checks.imports.RedundantImportCheck">
+ <property name="severity" value="warning"/>
+ </module>
+ <module name="com.puppycrawl.tools.checkstyle.checks.blocks.RightCurlyCheck">
+ <property name="option" value="alone"/>
+ <property name="severity" value="warning"/>
+ <property name="tokens" value="LITERAL_CATCH, LITERAL_ELSE, LITERAL_TRY"/>
+ </module>
+ <module name="com.puppycrawl.tools.checkstyle.checks.coding.SimplifyBooleanExpressionCheck">
+ <property name="severity" value="warning"/>
+ </module>
+ <module name="com.puppycrawl.tools.checkstyle.checks.coding.SimplifyBooleanReturnCheck">
+ <property name="severity" value="warning"/>
+ </module>
+ <module name="com.puppycrawl.tools.checkstyle.checks.naming.StaticVariableNameCheck">
+ <property name="format" value="^[a-z][a-zA-Z0-9]*$"/>
+ <property name="severity" value="warning"/>
+ </module>
+ <module name="com.puppycrawl.tools.checkstyle.checks.naming.TypeNameCheck">
+ <property name="format" value="^[A-Z][a-zA-Z0-9]*$"/>
+ <property name="severity" value="warning"/>
+ <property name="tokens" value="CLASS_DEF, INTERFACE_DEF"/>
+ </module>
+ <module name="com.puppycrawl.tools.checkstyle.checks.imports.UnusedImportsCheck">
+ <property name="severity" value="warning"/>
+ </module>
+ <module name="com.puppycrawl.tools.checkstyle.checks.design.VisibilityModifierCheck">
+ <property name="packageAllowed" value="true"/>
+ <property name="protectedAllowed" value="true"/>
+ <property name="publicMemberPattern" value="^serialVersionUID"/>
+ <property name="severity" value="warning"/>
+ </module>
+ </module>
+</module>
\ No newline at end of file
17 years, 5 months
Hibernate SVN: r13289 - common/tags/annotations_v3_1_0_Beta6.
by hibernate-commits@lists.jboss.org
Author: epbernard
Date: 2007-08-15 20:22:53 -0400 (Wed, 15 Aug 2007)
New Revision: 13289
Added:
common/tags/annotations_v3_1_0_Beta6/lib/
Log:
Move common tags/annotations_v31beta6 to the new structure (annotations_v3_1_0_Beta6)
Copied: common/tags/annotations_v3_1_0_Beta6/lib (from rev 13288, tags/annotations_v31beta6/HibernateExt/common/lib)
17 years, 5 months
Hibernate SVN: r13288 - common/tags.
by hibernate-commits@lists.jboss.org
Author: epbernard
Date: 2007-08-15 20:22:49 -0400 (Wed, 15 Aug 2007)
New Revision: 13288
Added:
common/tags/annotations_v3_1_0_Beta6/
Log:
Create common annotations_v3_1_0_Beta6 structure
17 years, 5 months