This repository has been archived by the owner on Mar 15, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
Releasenotes
Harald Pehl edited this page Apr 29, 2013
·
3 revisions
- Back to JDK 1.6 (for compatibility with dependent projects like GWTP)
- Added single generics support.
- Adding JSON and XML serializer for maps
Thanks meriouma for the contribution!
- Issue 54: Collection of enums caused compilation errors in generated code.
- Splited Piriti into ** piriti-user ** piriti-dev ** piriti-restlet
- Added XML serialization
- Changed converter interface
- Added Piriti to Maven Central
- Changed groupId for maven dependencies
- Rewrote internal code generation process to use velocity templates
- Fixed wrong module reference in name.pehl.piriti.json.JSON
Piriti 0.7.0 is a major release with breaking API changes, lots of new features and bugfixes.
Breaking API Changes:
- Piriti requires GWT 2.2 and GIN 1.5
- Dropped GXT support
- Removed @Json, @!JsonMappings, @Xml and @!XmlMappings annotations
New Features:
- Devided Piriti into different modules:
- name.pehl.piriti.commons.Commons
- name.pehl.piriti.converter.Converter
- name.pehl.piriti.json.JSON
- name.pehl.piriti.property.Property
- name.pehl.piriti.xml.XML
- Simplified mapping setup: All properties in a POJO hirarchy are now mapped by default (issue 22)
- Added new annotations to overide default behaviour:
- @Order
- @Path
- @Format
- @Native (issue 32)
- @Transient
- @CreateWith
- @MapUpTo
- Added @Mappings and @Mapping annotation for External Mappings (JSON and XML)
- Added support for polymorhic assoziations (issue 30)
- Converters can now be used for any type (issue 29)
- Added XML serialisation (not yet implemented, but scheduled for the 0.7.0 release)
- Added support for IDs and IDREFs in JSON (not yet implemented, but scheduled for the 0.7.0 release)
Bugfixes:
- Issue 24: Fixed problems when mapping collection implementations
- Issue 31: GWT.create() is now used instead of new operator
- Partial release: Only Piriti-Core and Piriti-Restlet are part of this release. Piriti-GXT will follow as soon as GXT is GWT 2.2 compatible.
- Issue 19: Json strings are now escaped correctly
- Issue 23: Added support for java.sql.
*
- Issue 24: Fixed code generation for collection implementations
- Issue 27: Piriti 0.6.4 requires GWT 2.2, GIN 1.5 and Guice 3.x
- Fixed bug when using private fields and inheritance
- Issue 16: Removed reference to @Nullable
- Issue 15: Custom converters are now handled correctly
- Breaking API changes:
- Renamed @JsonField to @Json and @XmlField to @Xml
- Renamed @JsonFields and @JsonModel to @JsonMappings
- Renamed @XmlFields and @XmlModel to @XmlMappings
- Added support for JSONPath expressions (see issue 12)
- Added order() to @Json and @Xml annotations to ensure a distinct processing order (see issue 11)
- Added support for custom converters (see issue 13)
- Added support for private fields and custom getters and setters (see issue 14)
- Added support for custom key names when serializing to JSON (see issue 9)
- Added support to serialize Json Writer
- Added the possibilty to use external mappings
- Added support for inheritance in POJOs and GXT models (see issue 6)
- Added support for Namespaces.
- Removed dependency to gwtxpath
- Added dependency to Totoe which is now used for XML parsing and namespace support.
- Fix for issue 5: Nested readers are now initialized correctly (thanks to dusan.maliarik)
- Added support for lowercase enum constants (thanks to dusan.maliarik)
- Switched to native JSON parser (thanks to Olivier Monaco)
- Fixed bug related to @XmlId / @XmlIdRef processing
- Added @XmlId and @XmlIdRef to map references. See XML references for an example
- Models can now have annotated fields of the same type. This works for 1-1 and 1-n relations
- Added saftey checks for null JSON values in generated JsonReader code
- Added methods to JsonReader for reading lists of models
- Added methods to XmlReader for reading lists of models
- Finished Restlet extension
- Added sample application
- Added support for JSON mapping
- Split Piriti into three modules: piriti-core, piriti-gxt and piriti-restlet
- Added a sample application
- Added import statements in generated XmlReader implementations.
- Added GWT unit test for Book / Author example from Getting Started
- Added collection and array mapping
- Discarded the mapping of maps
- Initial release