License     Codehaus     OpenEJB     OpenJMS     OpenORB     Tyrex     
 

Main
  Home
  About
  Features
  Download
  Maven 2 support
  API
  DTD & Schemas
  Recent changes
  RSS news feed

Development/Support
  Mailing Lists
  SVN/JIRA
  Contributing
  Support
  Prof. services

Related projects
  Spring ORM support
  Spring XML factories

XML
  Using XML
  XML Mapping
  XML FAQ
  XML HOW-TOs
  Custom Handlers
  Best practice

XML Code Generator
  Code Generator
  Properties
  Custom bindings
  Ant task
  Schema Support
  Example

JDO
  Introduction
  Using JDO
  JDO Config
  Types
  JDO Mapping
  JDO FAQ
  JDO Examples
  JDO HOW-TOs
  Other Features
  JDO sample JAR

Advanced JDO
  Caching
  OQL
  Trans. & Locks
  Design
  KeyGen
  Long Trans.
  Nested Attrs.
  Pooling Examples
  LOBs
  Best practice

More
  Presentations
  The Examples
  3rd Party Tools
  JDO Tests
  XML Tests
  Configuration
  Tips & Tricks
  Full JavaDoc
  CastorWiki
 
 

About
  License
  Contributors
  Marketplace
  Status, Todo
  Changelog
  Library
  Contact
  Project Name

  



Release notes


Releases


Releases

For all releases prior to 0.9.6, the release notes can be found here.



Release 1.0.5


Description:Maintenance release for Castor 1.0
released:November 11, 2006
managed by:Werner Guttmann

Changes

XML code generation - Signature type for 'j2' collections

The Castor code generator now uses 'java.util.List' as type when generating code for a Java member (as well as the type used for the corresponding getter and setter methods) rather than the old 'java.util.ArrayList'.


Bug Fixes And Issues Addressed
IdDateFixed byCommitted by DescriptionTypeProjectModule
166920061109Paul PhilionWerner Guttmann Added feature to set a custom ObjectFactory for object creation on Unmarshaller
Reporter: Paul Philion
BugEnh.
167820061109Werner GuttmannWerner Guttmann Fixed problem with code generation for choices used in extension hierarchies.
Reporter: Susan Anderson
BugXML
167120061108Edward KunsEdward Kuns Update CTF document and merge CTFDoc.pdf into ctf.xml
Reporter: Edward Kuns
Enh.XML
167720061108Werner GuttmannWerner Guttmann XML code generator now uses 'java.util.List' as signature type for 'j2' collections.
Reporter: Werner Guttmann
BugXML
168020061106Pawel PeszRalf Joachim Fixed issue with incorrect constants in AbstractMappingLoader.
Reporter: Pawel Pesz
BugXML
38420061102Werner GuttmannWerner Guttmann Added support for 'pattern' facet for <xsd:decimal>.
Reporter: Serge Henneaux
BugXML
167520061102Eric WittmannWerner Guttmann Fixed problem with SchemaWriter not serializing anyAttribute child of a complexType.
Reporter: Eric Wittmann
BugXML
167020061030Edward KunsEdward Kuns Add to CTF ability to specify failure step
Reporter: Edward Kuns
Enh.XML
161520061030Werner GuttmannWerner Guttmann Added HTML docs for prepared statement pooling.
Reporter: Ralf Joachim
BugJDO
166820061030Werner GuttmannWerner Guttmann Added test for enums to XML test suite.
Reporter: Ralf Joachim
BugXML
165320061028Ralf JoachimRalf Joachim Fixed type conversion error when unmarshalling enum fields.
Reporter: Henk van Voorthujsen
BugXML
166720061028Werner GuttmannWerner Guttmann Switched org.exolab.castor.builder.package to use Jakarta's commons-logging for logging.
Reporter: Werner Guttmann
BugXML
164220061027Paul PhilionWerner Guttmann Switched Marshaller to use Jakarta's commons-logging for logging (adding additional logging statements of level warn for exceptions that so far got caught silently).
Reporter: Paul Philion
BugXML
166020061027Werner GuttmannWerner Guttmann Fixed problem with namespace support for collections created using "container=false".
Reporter: Gregg Fowler
BugXML
165620061025Werner GuttmannWerner Guttmann Fixed broken code as generatd for XMLFieldHandler.resetValues() for Java 2 collections.
Reporter: Carlo Romero
BugXML
164820061024Edward KunsEdward Kuns Cyclic inheritence trees can cause srcgen to loop infinitely
Reporter: Edward Kuns
BugXML
165820061024Edward KunsEdward Kuns Clean up compilation complaint -- Java 5 varargs complaint
Reporter: Edward Kuns
Enh.All
165520061024Werner GuttmannWerner Guttmann Fixed broken code sample in XML best practice document.
Reporter: Tom Carey
BugXML
165220061023Edward KunsEdward Kuns Castor Source Code is created with ISO-8859-1 encoding, not UTF-8
Reporter: Edward Kuns
BugAll
163220061023Werner GuttmannWerner Guttmann Added support for XML schema type 'unsignedLong' to XML code generator.
Reporter: Werner Guttmann
BugXML
164720061023Edward KunsEdward Kuns log4j / junit classpath conflict with CTF
Reporter: Edward Kuns
BugXML



Release 1.0.4


Description:Maintenance release for Castor 1.0
released:October 22, 2006
managed by:Werner Guttmann

Requirements

Backported Castor to be compliant with Java 1.3 again. Therefore the dependecy on Java 1.4 introduced with 1.0 release has been removed.

To not lose features like JDBC 3.0 introduced with the 1.0 release of Castor, we decided to use reflection or dynamic proxies in some places. This allows one to use these features with Java 1.4 while still being able to use Castor with Java 1.3.

Additions

Database appender for log4j through CastorJDO

We have added a database appender for log4j through CastorJDO to our codebase in the

org.castor.tools.log4j
package. The appender has to be configured through log4j.xml configuration file as usual.

<appender name="db" class="org.castor.tools.log4j.CastorAppender">
    <param name="DatabaseName" value="LOGGING"/>
    <param name="BufferSize" value="10"/>
    <param name="ColumnWidthClass" value="100"/>
    <param name="ColumnWidthThread" value="100"/>
    <param name="ColumnWidthMessage" value="1000"/>
    <param name="ColumnWidthStackTrace" value="20000"/>
    <param name="DuplicateCount" value="true"/>
</appender>

To use the appender within your application you need to create tables to hold the log information at your database. An example script to create these tables as well as examples of mapping.xml and jdo-config.xml can also be found in

org.castor.tools.log4j
package.

Before you use the logger for the first time you need to initialize CastorJDO.

String JDO_CONF = "/org/castor/tools/log4j/example-jdo-conf.xml";
JDOManager.loadConfiguration(this.getClass().getResource(JDO_CONF).toString());

Thereafter you can use your logger as usual. Log4j will use CastorAppender to write the log information to the database.

LOG.warn("This is a message logged to database");

One additional thing you need to take care of: As CastorAppender does some caching to reduce database operations, you have to tell it to write all cached information to database before you close your application.

CastorAppender.flush();

We also provided a way to extend the information logged to database. For an example extension take a look at LogReferenceExtension and TestCastorAppender classes as well as the example mapping file.

Special getter methods for XML mapping

As part of a field mapping, it is now possible to specify two special methods that will be treated in a non-standard way. If the 'get-method' specified on a field mapping starts with either 'enum' or 'iterate', it will be treated in a way that the collection (container) is only exposed through this 'enumeration'/'iteration' method.

Added new property org.exolab.castor.sax.features-to-disable

To disabled selected features on the XML parser used internally by Castor XML, please use the new property org.exolab.castor.sax.features-to-disable as shown below

# Comma separated list of SAX 2 features that should be disabled
# for the default parser.
#org.exolab.castor.sax.features-to-disable
                

Added new CTF test case type to test source generation only, especially useful for regression tests of exceptions thrown during source generation

For a sample and for the place to add future test cases for the Master Test Suite, see the directory tree src/tetsts/xml/MasterTestSuite/sourcegenerator/generationOnly, although regression tests should be added to the regression suite


Bug Fixes And Issues Addressed
IdDateFixed byCommitted by DescriptionTypeProjectModule
164520061022Werner GuttmannWerner Guttmann Fixed problem with incorrect handling of elememt references to global elements within complex type definitions during code generation.
Reporter: Werner Guttmann
BugXML
164320061020Edward KunsEdward Kuns Remove new tree of tests of known bugs (reverse changes of CASTOR-1640)
Reporter: Edward Kuns
BugXML
164120061019Edward KunsEdward Kuns Enhance UNIX CTFRun.sh script
Reporter: Edward Kuns
Enh.XML
163720061019Edward KunsEdward Kuns Update to checkstyle rule set
Reporter: Edward Kuns
Enh.All
164020061019Edward KunsEdward Kuns Add new tree of tests of known bugs
Reporter: Edward Kuns
Enh.XML
163920061019Edward KunsEdward Kuns Refactor CTF test-with-reference-document
Reporter: Edward Kuns
Enh.All
158120061019Holger WestRalf Joachim Added database appender for log4j through CastorJDO.
Reporter: Holger West
Enh.JDO
163820061019Edward KunsEdward Kuns Remove trailing blanks in release notes
Reporter: Edward Kuns
Enh.All
163620061019Edward KunsEdward Kuns Checkstyle-based corrections in javasource
Reporter: Edward Kuns
Enh.XML
161220061018Edward KunsEdward Kuns Update CTF documentation for new test case type
Reporter: Edward Kuns
BugXML
122920061018Werner GuttmannWerner Guttmann Fixed problem with code generator ignoring nillable attribute for element references.
Reporter: Werner Guttmann
BugXML
163520061018Werner GuttmannWerner Guttmann Fixed problem with generation of incorrect validation code for schema type 'gMonthDay'
Reporter: Werner Guttmann
BugXML
163420061018Edward KunsEdward Kuns Trivial checkstyle-based corrections
Reporter: Edward Kuns
BugAll
163120061018Werner GuttmannWerner Guttmann Added support for XML schema type 'unsignedByte' to XML code generator.
Reporter: Werner Guttmann
Enh.XML
163020061017Werner GuttmannWerner Guttmann Added support for XML schema type 'unsignedShort' to XML code generator.
Reporter: Werner Guttmann
Enh.XML
162920061017Werner GuttmannWerner Guttmann Added support for XML schema type 'unsignedInt' to XML code generator.
Reporter: Werner Guttmann
Enh.XML
160020061017Werner GuttmannWerner Guttmann Fixed problem with incorrect model group naming (and numbering) scheme.
Reporter: Werner Guttmann
BugXML
162720061016Edward KunsEdward Kuns For directory trees, set the test suite name to the directory name.
Reporter: Edward Kuns
Enh.XML
158620061016Ralf JoachimRalf Joachim Fixed error loading mapping whem migrating from 1.0.1 to 1.0.3.
Reporter: M.-Leander Reimer
BugXML
162620061016Werner GuttmannWerner Guttmann Added Code generation sample to HTML documentation
Reporter: Werner Guttmann
Enh.XML
162120061016Ralf JoachimRalf Joachim Backported Castor to Java 1.3 compatibility: JDBC 3.0.
Reporter: Ralf Joachim
Enh.JDO
162520061016Rainer MontagWerner Guttmann Added checks to DateTimeBase.setCentury() for (invalid) years = 0.
Reporter: Rainer Montag
BUgXML
38520061015Edward KunsEdward Kuns Source Generator uses the name "Content" which conflicts with any element named "Content."
Reporter: Edward Kuns
Enh.XML
158420061015Steven DolgRalf Joachim Refactored AbstractMappingLoader.
Reporter: Ralf Joachim
Enh.All
41620061015Lars KloseWerner Guttmann Source generator now overloads resetValues() on XMLFieldHandler for mutli-valued properties.
Reporter: Lars Klose
Enh.XML
48220061015Werner GuttmannWerner Guttmann Source generator now adds is<Property> methods for boolean members.
Reporter: Dean Chalker
Enh.XML
162320061014Edward KunsEdward Kuns Clean up checkstyle complaints in builder
Reporter: Edward Kuns
Enh.XML
155520061012Edward KunsEdward Kuns Correct SRCGEN JavaDoc tags that fail validation
Reporter: Edward Kuns
Enh.XML
20420061012Edward KunsEdward Kuns Invalid Instance Document containing ALL elements of a schema definitions choice is not unmarshallable
Reporter: Edward Kuns
TestXML
161920061012Ralf JoachimRalf Joachim Backported Castor to Java 1.3 compatibility: Exceptions do not support claus.
Reporter: Ralf Joachim
Enh.All
161820061012Ralf JoachimRalf Joachim Backported Castor to Java 1.3 compatibility: JAXP usage at Unmarshaller.
Reporter: Ralf Joachim
Enh.XML
162020061012Ralf JoachimRalf Joachim Backported Castor to Java 1.3 compatibility: unknown methods.
Reporter: Ralf Joachim
Enh.All
58720061010Werner GuttmannWerner Guttmann Fixed problem with default values for date/time types in code generation
Reporter: Jesse
Enh.XML
159720061010Edward KunsEdward Kuns Introduce proper exception handling to source generator
Reporter: Edward Kuns
Enh.XML
111720061009Werner GuttmannWerner Guttmann Fixed problem with setting type of untyped attribute through binding file.
Reporter: Neil Taylor
BugXML
113720061009Werner GuttmannWerner Guttmann Fixed problem with special characters in enumerations
Reporter: Chuck Betts
BugXML
108720061008Werner GuttmannWerner Guttmann Fixed problem with incorrect initialization code for byte arrays.
Reporter: Michael Pliskin
BugXML
118120061008Anton SpaansWerner Guttmann Fixed problem with code generation for attributes that are restricted.
Reporter: Anton Spaans
BugXML
59920061007Edward KunsEdward Kuns UnmarshalHandler doesn't chain exception
Reporter: Jay Dunning
Enh.XML
161320061007Edward KunsEdward Kuns Finish @throws javadoc
Reporter: Edward Kuns
Enh.XML
71620061007Edward KunsEdward Kuns SourceGenerator doesn't correctly generate the .equals() method for base64binary
Reporter: Derek Sayeau
BugXML
160920061006Edward KunsEdward Kuns Implement equals() for AnyNode (already fixed, so adding a regression test case)
Reporter: Derek Sayeau
TestXML
141720061006Edward KunsEdward Kuns hashCode() generation
Reporter: Michele Mazzucco
BugXML
102720061005Edward KunsEdward Kuns demo example of SourceGenerator does not build
Reporter: Brett Wuth
BugXML
160820061005Edward KunsEdward Kuns Split "main" out of SourceGenerator.java
Reporter: Edward Kuns
Enh.XML
160220061005Edward KunsEdward Kuns Add new test case type to read schema only (CASTOR-1602)
Reporter: Edward Kuns
Enh.XML
160720061003Edward KunsEdward Kuns Add regression test for parent issue (Generated classes are not compileable for simpleTypes with list-elements)
Reporter: Edward Kuns
TestXML
122620061003Bertrand MartelWerner Guttmann Fixed problem with type derivation for referenced/included attribute.
Reporter: Bertrand Martel
BugXML
160420061002Edward KunsEdward Kuns Fix two test case failures (one regression, one not).
Reporter: Edward Kuns
BugXML
159320061002M.-Leander ReimerWerner Guttmann Fixed problem with AnyNode not preserving whitespace during unmarshalling.
Reporter: M.-Leander Reimer
BugXML
159120061002Edward KunsWerner Guttmann Cleanup and bug fixes for test framework.
Reporter: Edward Kuns
BugXML
159920061001Werner GuttmannWerner Guttmann Fixed problem with incorrect code generation for element definitions/references pointing to an abstract complex type
Reporter: Werner Guttmann
BugXML
133520061001Werner GuttmannWerner Guttmann Fixed problem with code generated for <xsd:choice> elements with primitive and java.lang.Object types mixed.
Reporter: Martin West
BugXML
159520061001Edward KunsWerner Guttmann Refactored SourceGenerator class, moving parts to separate code artefacts.
Reporter: Edward Kuns
BugXML
158520060930Werner GuttmannWerner Guttmann Added property to disable selected features on SAX2 parser used internally by Castor XML.
Reporter: scud
BugXML
159620060930Edward KunsWerner Guttmann Expanded JMethod.addException() to correctly insert @throws Javadoc.
Reporter: Edward Kuns
BugXML
159420060930Edward KunsWerner Guttmann Added regression test for CASTOR-1580 to CTF regression suite.
Reporter: Edward Kuns
BugXML
158920060930Edward KunsRalf Joachim Fixed ComplexType-DirectAccess test complaining about differences.
Reporter: Edward Kuns
BugXML
159020060929Edward KunsRalf Joachim Source code cleanup at Castor XML test framework.
Reporter: Edward Kuns
Enh.XML
158820060929Edward KunsWerner Guttmann Fixed problem with stack overflow in CTF maste test suite
Reporter: Edward Kuns
BugXML
158320060927Edward KunsRalf Joachim CTF doesn't run properly under Fedora Core Linux.
Reporter: Edward Kuns
BugXML
156620060927Werner GuttmannWerner Guttmann Fixed problem with incorrect generation of unmarshal methods for extensions/ restrictions where extended/restricted type is in an imported schema.
Reporter: Mattias Jiderhamn
BugXML
157420060921Werner GuttmannWerner Guttmann Added '0' and '1' as possible values for setting 'nillable' attribute.
Reporter: Frank Bechstein
BugXML
106020060925Edward KunsWerner Guttmann Fixed problem in SourceGenerator generating multiple @return comments.
Reporter: Jeremy Nix
BugXML
157520060925Ontje LünsdorfWerner Guttmann Added a feature that allows getter methods starting with the prefix 'iterate' to be treated in a way that a collection (container) is only exposed through this 'iteration' method.
Reporter: Ontje Lünsdorf
BugXML
155120060925Steven DolgWerner Guttmann Resolved problem with mapping nested maps.
Reporter: Steven Dolg
BugXML
157820060925Edward KunsWerner Guttmann Thorough build cleanup.
Reporter: Edward Kuns
Enh.XML
157520060922Ontje LünsdorfWerner Guttmann Added a feature that allows getter methods starting with the prefix 'enum' to be treated in a way that a collection (container) is only exposed through this enumeration method.
Reporter: Ontje Lünsdorf
BugXML
154020060921Werner GuttmannWerner Guttmann Fixed problem with new 'org.exolab.castor.builder.javaVersion` when used in a property file that was set by calling SourceGenerator.setDefaultProperties().
Reporter: Edward Kuns
BugXML
156920060921Werner GuttmannWerner Guttmann Refactor JType so that for arrays/collections, there's new sub-types.
Reporter: Werner Guttmann
Enh.XML
156720060920Edward KunsWerner Guttmann Thorough JavaDoc cleanup - part II.
Reporter: Edward Kuns
Enh.XML
156320060919Edward KunsWerner Guttmann Thorough JavaDoc cleanup.
Reporter: Edward Kuns
Enh.XML
130720060918Werner GuttmannWerner Guttmann Fixed problem with special characters as part of <xsd:annotation> elements.
Reporter: Roland Spatzenegger
BugXML
156220060918Edward KunsWerner Guttmann Minor refactoring of the java.exolab.javasource package.
Reporter: Edward Kuns
BugXML
155020060916Werner GuttmannWerner Guttmann Fixed issue with self-sufficiency of XML JAR:
Reporter: Uwe Langbecker
BugXML
156120060916Ralf JoachimRalf Joachim Enabled checkstyle for javasource package and fixed most of the warnings.
Reporter: Ralf Joachim
Enh.XML
155720060916Edward KunsWerner Guttmann Moved java.util.Iterator-specific code from CollectionInfo to CollectionInfoJ2.
Reporter: Edward Kuns
Enh.XML
156020060916Edward KunsRalf Joachim Thorough JavaDoc update for javasource package.
Reporter: Edward Kuns
Enh.XML
155920060916Ralf JoachimRalf Joachim Fixed 90 warnings at generation of API JavaDoc.
Reporter: Ralf Joachim
Enh.All
155820060915Edward KunsRalf Joachim Fixed javadoc package-summary links and added classpath to javadoc build.
Reporter: Edward Kuns
Enh.All
155220060915Steven DolgWerner Guttmann Refactored CollectionInfo* classes, incl. changes to names of methods generated.
Reporter: Steven Dolg
BugXML
155620060915Edward KunsRalf Joachim Correct HTML tags and grammar in package.html files.
Reporter: Edward Kuns
Enh.All
154920060914Paul PhilionWerner Guttmann Added cause exception to IllegalStateException created in FieldHandlerImpl.getValue().
Reporter: Paul Philion
BugXML
139220060912Yegor BorovikovWerner Guttmann Castor XML code generator does not overwrite existing '.castor.cdr' files anymore.
Reporter: Yegor Borovikov
BugXML
154420060910Werner GuttmannWerner Guttmann Castor XML code generator does not overwrite existing '.castor.cdr' files anymore.
Reporter: Edward Kuns
BugXML
154320060909Steven DolgWerner Guttmann Fixed problem with attributes named 'class' (where wrongly named getter/setter had been generated)
Reporter: Melanie Courtot
BugXML
154320060909Edward KunsWerner Guttmann Added new getIterator() method to Java classes generated for J2 collection types.
Reporter: Edward Kuns
BugXML
154320060909Edward KunsWerner Guttmann Fixed problem with incorrent code generation related to the use of primitive types and generics.
Reporter: Edward Kuns
BugXML



Release 1.0.3


Description:Maintenance release for Castor 1.0
released:September 7, 2006
managed by:Werner Guttmann

Additions

Support for Progress

Support for Progress has been added. For initial information about configuration of Castor JDO for the use with Progress, please see src/tests/jdo/progress.xml.

New unmarshal() methods for Unmarshaller

In addition to the already existing methods, two new unmarshal() methods have been added to Unmarshaller, namely ...

-unmarshal(SAXSource)
-unmarshal(DOMSource)

Fixed problems - Overview


Bug Fixes And Issues Addressed
IdDateFixed byCommitted by DescriptionTypeProjectModule
147820060907Werner GuttmannWerner Guttmann Fixed problem with 'staticness' of group naming scheme.
Reporter: Stefan Flick
BugXML
153720060904Werner GuttmannWerner Guttmann Added HOW-TO document for mapping lists at the root level
Reporter: Werner Guttmann
Enh.XML
149420060901Le Duc BaoRalf Joachim Fixed inconsistencies between sql types in mapping and ddl scripts of CTF.
Reporter: Le Duc Bao
Enh.JDO
153820060831Steven DolgWerner Guttmann Performance-related refactoring of XMLClassDescriptorResolverImpl.
Reporter: Steven Dolg
Enh.XML
148720060830Gregory BlockWerner Guttmann Fixed minor inconsistency in getting (expired) objects from EHCache.
Reporter: Gregory Block
BugJDO
151220060827Werner GuttmannWerner Guttmann Improved documentation wrt source generator Ant task.
Reporter: Rainer Montag
Enh.XML
150120060824Werner GuttmannWerner Guttmann Fixed problem with ignorance of java-type elements in binding file (for complex elements).
Reporter: Michal Kostrzewa
BugXML
150820060824Phil WebbWerner Guttmann Various speed improvementzs related to inheritance search.
Reporter: Phil Webb
BugXML
148920060824Werner GuttmannWerner Guttmann Added support for abstract <complexType> definitions.
Reporter: James MacDonald
BugXML
147120060819Werner GuttmannWerner Guttmann Added support for Progress.
Reporter: Victor Manuel Iniestra Alvarez
Enh.JDOL
150920060823Werner GuttmannWerner Guttmann Refactored Marshaller to allow instantiation through default constructor (setting Writer through setWriter()).
Reporter: Werner Guttmann
Enh.XML
150620060823Emir CausevicWerner Guttmann Restructured mapping syntax for named queries.
Reporter: Werner Guttmann
BugJDO
149320060822Simeon de DiosWerner Guttmann Fixed problem with wrong class names for elements of named <complexType> which are unbounded choice.
Reporter: Simeon de Dios
BugXML
148920060820Werner GuttmannWerner Guttmann Added support for abstract <complexType> definitions.
Reporter: James MacDonald
BugXML
149220060820Werner GuttmannWerner Guttmann Added XML best practice document.
Reporter: Gregory Block
Enh.ALL
150020060818Werner GuttmannWerner Guttmann Fixed problem with including all required class files in XML JAR.
Reporter: Christian Zuckschwerdt
BugALL
149920060818Emir CausevicWerner Guttmann Added support for named queries at the <class> level.
Reporter: Werner Guttmann
Enh.JDO
149520060810Ralf JoachimRalf Joachim Moved successfull XML tests from Regression- to MasterTestSuite.
Reporter: Ralf Joachim
Enh.XML
148820060810Ralf JoachimRalf Joachim Refactored FieldDescriptor.
Reporter: Ralf Joachim
Enh.All



Release 1.0.2


Description:Maintenance release for Castor 1.0
released:June 8, 2006
managed by:Werner Guttmann

Changes

Source generator now supports Java 5.0

The Castor source generator now supports the generation of Java 5.0 compliant classes. The generated code - with the new feature enabled - will make use of the following Java 5.0-specific artefacts:
-Use of parameterized collections, e.g. ArrayList<String>.
-Use of @Override annotations with the generated methods that require it.
-Use of @SupressWarnings with "unused" method parameters on the generated methods that needed it.
-Added "enum" to the list of reserved keywords.

To enable this feature (off by default), please uncomment the following property in your custom castorbuilder.properties file:

# This property specifies whether the sources generated
# should comply with java 1.4 or 5.0; defaults to 1.4
org.exolab.castor.builder.javaVersion=5.0
                

New property in castor.properties

Added new property to castor.properties to disable use of package-based '.castor.xml' files during class resolution selectively, which is enabled by default.

To disable this feature, please uncomment the following property in your custom castor.properties file:

#
# Property specifying whether the ClassDescriptorResolver should (automatically) search for and
# consult with package mapping files (.castor.xml) to retrieve class descriptor information;
# on by default. defaults to true
#
org.exolab.castor.xml.loadPackageMappings=false

Internal handling of idenities

In the past Castor differentiated between single and multiple field identities of persistent objects. For single field identities Castor hold the identitiy object itself while the objects of a multiple field identity where wrapped by an instance of Complex class. This caused various if-then-else constructs to differentiat the 2 representations of identities.

With the refactoring identities are now always wrapped by an instance of Identity class being it a single or a multiple fields one. This resulted in much cleaner code at various areas and in addition we could improve type checking by declaring lots of properties and parameters to be of Identity class instead of simply Object.

While we could manage to be backward compatible for all methods that gets an identity passed (e.g.

Database.load(Class, Object)
) this was not possible for
Database.getIdentity(Object)
. Instead of the single field identity or an instance of Complex class for multiple field identities it now always returns an instance of Identity class.

You have to be aware that you need to adapt your code to get things working as before if you use

Database.getIdentity(Object)
method.

Creation of MappingLoaders

As of release 1.0.2 the MappingLoader implementations need to be configured in castor.properties file. While this also allows to specify external MappingLoader implementations to be used by Castor, it now is also required to specify the 2 internal implementations in this file.

#
# MappingLoader implementations
#
org.castor.mapping.Loaders=\
  org.exolab.castor.jdo.engine.JDOMappingLoader,\
  org.exolab.castor.xml.XMLMappingLoader
                

You have to be aware that you need add the new configuration property to you custom castor.properties file.


Bug Fixes And Issues Addressed
IdDateFixed byCommitted by DescriptionTypeProjectModule
148720060803Ralf JoachimRalf Joachim Fixed bug in Castor's EHCache implementation.
Reporter: Gregory Block
BugJDO
148220060802Ralf JoachimWerner Guttmann Fixed problem to source code generator ignoring -nomarshall, -testable options.
Reporter: Ralf Joachim
BugXML
148320060801Ralf JoachimRalf Joachim Fixed NullPointerException at generation of mapping.
Reporter: Ralf Joachim
BugXML
148220060801Werner GuttmannWerner Guttmann Fixed problem related to MapItem class and namespaces.
Reporter: Dmitry Narozhnykh
BugXML
148420060731Ralf JoachimRalf Joachim Seperated responsibilities of AbstractMappingLoader for holding its current state and generation of descriptors.
Reporter: Ralf Joachim
Enh.All
72120060726Werner GuttmannWerner Guttmann Added validation of min/maxLength facets for xs:NMTOKEN
Reporter: Kraemer
BugXML
72120060726Werner GuttmannWerner Guttmann Fixed problem with support for final modifier at the class level during source generation.
Reporter: Derek Sayeau
BugXML
78620060726Werner GuttmannWerner Guttmann Removed unnecessary import statements addition for java.io.* during source generation
Reporter: Daniel Bradby
BugXML
147520060725Werner GuttmannWerner Guttmann Made EmptyEnumerator implement java.io.Serializable.
Reporter: ?
BugJDO
147620060721Dave BrosiusRalf Joachim Removed unnecessary object construction.
Reporter: Dave Brosius
Enh.JDO
147520060713Werner GuttmannWerner Guttmann Added new property to castor.properties to disable use of package-based '.castor.xml' files selectively.
Reporter: Bernard McGourty
Enh.XML
147320060710Ralf JoachimRalf Joachim Added posibility to retrieve ClassDescriptor.
Reporter: Ralf Joachim
Enh.JDO
147020060707David BuschmanWerner Guttmann Added support for Java 5 compatible source code generation.
Reporter: David Buschman
Enh.XML
147220060706Ralf JoachimRalf Joachim Allowed to specify base URI at JDOManager.loadConfiguration().
Reporter: Ralf Joachim
BugJDO
145720060629Werner GuttmannWerner Guttmann Integrate new JDOClassDescriptorResolver with existing Castor JDO code.
Reporter: Werner Guttmann
Enh.JDO
145720060628Werner GuttmannWerner Guttmann Introduce JDO specific ClassDescriptporResolver (and refactor class hierarchy in this area).
Reporter: Werner Guttmann
BugJDO
146520060626Werner GuttmannWerner Guttmann Changed transaction handling semantics in CacheManager.expireCache(Class, Object[]).
Reporter: Werner Guttmann
BugJDO
146420060626Werner GuttmannWerner Guttmann Fixed incorrect use of reflection in JOTMTransactionManagerFactory.
Reporter: Werner Guttmann
BugJDO
146320060626Ralf JoachimRalf Joachim Extract loading of mapping from Mapping into new MappingUnmarshaller.
Reporter: Ralf Joachim
Enh.All
145920060626Dave BrosiusRalf Joachim Removed use of reflective toArray() calls by passing in a properly sized array.
Reporter: Dave Brosius
Enh.All
146020060626Dave BrosiusRalf Joachim Fixed bad boolean test.
Reporter: Dave Brosius
BugXML
146120060626Dave BrosiusRalf Joachim Used local variable instead of refetching it.
Reporter: Dave Brosius
Enh.JDO
146220060626Dave BrosiusRalf Joachim Moved wrongly placed parenthesis that caused toString() being executed for no reason.
Reporter: Dave Brosius
Enh.XML
145620060624Ralf JoachimRalf Joachim Extracted creation of MappingLoaders from Mapping into new MappingLoaderRegistry.
Reporter: Ralf Joachim
Enh.All
145420060624Werner GuttmannWerner Guttmann Moved code to unmarshal Castor JDO configuration file to JDOConfFactory.
Reporter: Werner Guttmann
Enh.JDO
145020060620Werner GuttmannWerner Guttmann Add getCurrentTransaction() to AbstractDatabaseImpl.
Reporter: Werner Guttmann
Enh.JDO
143520060617Ralf JoachimRalf Joachim Refactored internal handling of identities.
Reporter: Ralf Joachim
Enh.JDO
144920060616Werner GuttmannWerner Guttmann Re-generated class files from jdo-conf.xsd
Reporter: Werner Guttmann
Enh.JDO
48020060614Michal StochmialekWerner Guttmann Avoid generation of unnecessary import statements in generated source.
Reporter: Michal Stochmialek
BugXML
143420060614Werner GuttmannWerner Guttmann Improve test coverage for 'auto-store' attribute
Reporter: Werner Guttmann
Enh.JDO



Release 1.0.1


Description:Maintenance release for Castor 1.0
released:June 8, 2006
managed by:Werner Guttmann

Development environment

On April 14. 2006 we have migrated Castor source repository from CVS to SVN. At the moment we still provide read only access to CVS but this does not reflect commits to SVN after the migration. The read only access to CVS is intended for you to create patches of your current work and move it over to SVN. Be aware that we will switch off CVS soon.

For details about SVN access please have a look at: SVN/JIRA.

Additions

Added support for ehCache

By specifing

<cache-type type="ehcache"/>

at class mapping you can now use ehCache with Castor JDO. As of ehcache 1.2, ehcache can be used as a distributed cache.

Added support for Gigaspaces

By specifing

<cache-type type="gigaspaces"/>

at class mapping you can now use Gigaspaces with Castor JDO, supporting all possible use scenarios of Gigaspaces (local cache, remote cache, local master cache, distributed cache, partitions) in a flexible way.

Changes

ANSI-SQL-92 compliance for MS SQLServer

Refactored the SQLServer-specific classes to support ANSI-SQL-92 compliant syntax in addition to the existing code base.


Bug Fixes And Issues Addressed
IdDateFixed byCommitted by DescriptionTypeProjectModule
117220060608Werner GuttmannWerner Guttmann Added support for ANSI-92 compliance to SQLServer persistence classes.
Reporter: Werner Guttmann
Enh.JDO
143620060608Werner GuttmannWerner Guttmann Added cache implementation for Gigaspaces (cache-based).
Reporter: Werner Guttmann
Enh.JDO
144420060606Martin FuchsMartin Fuchs Fixed documentation of OQL OFFSET clause usage.
Reporter: Martin Fuchs
BugJDO
144320060603Ralf JoachimRalf Joachim Fixed various compiler warnings mainly in tc7x and tc20x tests of CTF.
Reporter: Ralf Joachim
Enh.All
139820060603Ralf JoachimRalf Joachim Fixed 212 unused private methods, private fields, or local variables compiler warnings.
Reporter: Henk van Voorthujsen
Enh.All
144120060603Ralf JoachimRalf Joachim Fixed 206 whitespace after and whitespace around compiler warnings.
Reporter: Ralf Joachim
Enh.All
144020060601Werner GuttmannWerner Guttmann Fixed Configuration.loadProperties(String,String) to close resource streams after usage.
Reporter: Alexander Soklakov
BugXML
138420060530Werner GuttmannWerner Guttmann Fixed problem with NPE related to field mappings without type declaration..
Reporter: Manjuka Soysa
BugXML
142920060523Werner GuttmannWerner Guttmann Fixed ClassNotFoundException related to using a custom XMLNaming scheme.
Reporter: Neutrolio
BugXML
143920060529Werner GuttmannWerner Guttmann Added test case for Castor JDO CTF to test database.isPersistent().
Reporter: Werner Guttmann
Enh.JDO
143220060528Pawel PeszWerner Guttmann Fixed problem with numbered parameters in SQL pass-through queries.
Reporter: Pawel Pesz
BugJDO
142020060524Werner GuttmannWerner Guttmann Added support for unmarshalling attributes of type byte[].
Reporter: Marcin Cinik
BugXML
69020060524Doug BerklandWerner Guttmann Fixed problem with location attribute in the context of extend hierarchies.
Reporter: Doug Berkland
BugXML
141520060523Werner GuttmannWerner Guttmann Upgraded Jakarta commons logging to 1.1.
Reporter: Werner Guttmann
EnhGeneral
142020060523Werner GuttmannWerner Guttmann Fixed a problem with the application of naming conventions in introspection mode.
Reporter: Sumit Chawla
BugXML
142420060523Werner GuttmannWerner Guttmann Renamed tables of CTF tests in ctf.jdo.tc7x package.
Reporter: Ralf Joachim
Enh.JDO
142320060508Werner GuttmannWerner Guttmann Moved the remaining 10 CTF tests (JDO) to new ctf.jdo.tc7x package.
Reporter: Werner Guttmann
Enh.JDO
140820060507Werner GuttmannWerner Guttmann Added improved tests for self-referential relations.
Reporter: Werner Guttmann
Enh.JDO
141320060505Werner GuttmannWerner Guttmann Added support for ehcache as Castor (performance) cache.
Reporter: Werner Guttmann
Enh.JDO
140620060429David GreenRalf Joachim Fixed EmptyStackException at SAX2ANY.
Reporter: David Green
BugXML
131820060427Raúl Sanz de Acedo PérezRalf Joachim Allowed to separately en-/disable logging of executed SQL statments.
Reporter: Raúl Sanz de Acedo Pérez
Enh.JDO
141420060427Ralf JoachimRalf Joachim Upgraded log4j from 1.2.8 to 1.2.13.
Reporter: Ralf Joachim
Enh.All
140920060427Werner GuttmannWerner Guttmann Fixed problem with read-only lazy-loaded 1:1 relations.
Reporter: Jon Wilmoth
BugJDO
141220060426Martin FuchsMartin Fuchs Remove dependency to Adaptx and Xerces from the documentation build step.
Reporter: Martin Fuchs
Enh.General
141120060426Ralf JoachimRalf Joachim Replaced Object[] parameters at SQLEngine by ProposedEntity.
Reporter: Ralf Joachim
Enh.JDO
138220060426David BuschmanWerner Guttmann Fixed wrongly coded boolean expressions.
Reporter: David Buschman
BugXML
141020060426Martin FuchsWerner Guttmann Fixed broken links to cvs.html (replaced with scm.html).
Reporter: Martin Fuchs
Enh.All
139720060425Henk van VoorthujsenRalf Joachim Fixed compiler warnings: 212 unnecessary else clauses.
Reporter: Henk van Voorthujsen
Enh.All
140720060425Ralf JoachimRalf Joachim Use ClassMolder.getLockEngine() instead of passing around LockEngine everywhere.
Reporter: Ralf Joachim
Enh.JDO
140220060413Werner GuttmannWerner Guttmann Improved exception reporting for various JDO-related exceptions.
Reporter: Yegor Borovikov
BugJDO
140320060422Werner GuttmannWerner Guttmann Fixed documentation for 'sortedset' collection type in the JDO mapping section.
Reporter: Artur Brinkmann
BugJDO
138020060416Ralf JoachimRalf Joachim Migrated Castor repository from CVS to SVN.
Reporter: Ralf Joachim
Enh.All
140120060414Henk van VoorthujsenRalf Joachim Added project specific settings for use with Eclipse.
Reporter: Henk van Voorthujsen
Enh.All
139520060414Henk van VoorthujsenRalf Joachim Fixed compiler warnings: 268 unused imports.
Reporter: Henk van Voorthujsen
Enh.All
138820060413Werner GuttmannWerner Guttmann Refactored ClassMolder.update() to complete transfer to strategy pattern.
Reporter: Werner Guttmann
BugJDO
139420060413Henk van VoorthujsenRalf Joachim Fixed compiler warnings: 104 instance of instance access to static fields/methods.
Reporter: Henk van Voorthujsen
Enh.All
139320060413Henk van VoorthujsenRalf Joachim Fixed compiler warnings: 103 unnecessary casts.
Reporter: Henk van Voorthujsen
Enh.All
139120060412Ralf JoachimRalf Joachim Upgrad checkstyle configuration from version 3.5 to 4.1.0beta3.
Reporter: Ralf Joachim
Enh.All
137020060411Werner GuttmannWerner Guttmann Refactored ProposedObject (and renamed it to ProposedEntity).
Reporter: Werner Guttmann
BugJDO
135520060411Werner GuttmannWerner Guttmann Fixed problem related to lazy loading objects part of an 1:1 relation.
Reporter: Jon Wilmoth
BugJDO
137920060411Werner GuttmannWerner Guttmann Fixed problem related to loading object hierarchies with access mode DB_LOCKED.
Reporter: Ralf Joachim
BugJDO
138920060411Ralf JoachimRalf Joachim Replaced org.exolab.castor.util.Messages by org.castor.util.Messages.
Reporter: Ralf Joachim
Enh.All
138720060410Henk van VoorthujsenWerner Guttmann Removed postgreSQL JAR from Eclipse templates
Reporter: Henk van Voorthujsen
BugJDO
138620060408Ralf JoachimRalf Joachim Extracted all keys of JDO properties into org.castor.util.ConfigKeys.
Reporter: Ralf Joachim
Enh.JDO
138520060408Ralf JoachimRalf Joachim Removed dependecy of JDO on org.exolab.castor.util.LocalConfiguration.
Reporter: Ralf Joachim
Enh.JDO
138120060415Ralf JoachimRalf Joachim Removed org.exolab.castor.util.Logger.
Reporter: Ralf Joachim
Enh.All



Release 1.0


Description:New and on-going development
released:April 6, 2006
managed by:Werner Guttmann

Requirements

Introduced Java 1.4 as a dependecy

This is a reminder that we have started to add some features that more or less depend on features made available with Java 1.4 (only), such as the JDBC 3.0 API enhancements. As such, we have made Java 1.4 a key requirement for the upcoming Castor 1.0 release.


Bug Fixes And Issues Addressed
IdDateFixed byCommitted by DescriptionTypeProjectModule
137120060405Hristo GanevWerner Guttmann Fixed problem in SchemaWriter related to annotations.
Reporter: Hristo Ganev
BugXML
97220060404Ralf JoachimRalf Joachim Fixed lock conflict in TransactionContext.rollback when using dbLocked.
Reporter: Christoph Ernst
BugJDO
137620060401Matt SecoskeRalf Joachim Added HOW-TO Unmarshal raw XML segments into arbitrary types.
Reporter: Matt Secoske
Enh.XML
103920060330Andrew MayRalf Joachim Fixed Castor being unable to find FieldDescriptor when using auto-naming with location.
Reporter: Daniel Dyer
BugXML
134620060330Barbara PrechtlRalf Joachim Fixed notifyPropertyChangeListeners not being called when bound properties is set true.
Reporter: Barbara Prechtl
BugXML
134020060330Barbara PrechtlRalf Joachim Fixed unmarshaller error with generated code when using groups.
Reporter: Barbara Prechtl
BugXML
116420060329Ralf JoachimRalf Joachim Refactored CTF-JDO tests into subdirectories (part 3).
Reporter: Ralf Joachim
Enh.JDO

For all the releases prior to 1.0, the release notes can be found at here.

 
   
  
   
 


Copyright © 1999-2005 ExoLab Group, Intalio Inc., and Contributors. All rights reserved.
 
Java, EJB, JDBC, JNDI, JTA, Sun, Sun Microsystems are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and in other countries. XML, XML Schema, XSLT and related standards are trademarks or registered trademarks of MIT, INRIA, Keio or others, and a product of the World Wide Web Consortium. All other product names mentioned herein are trademarks of their respective owners.