Projects / jTransfo

jTransfo

jTransfo is a Java library to easily convert between transfer and domain objects. It is driven using annotations on the transfer object. Several transfer objects for the same domain object can be used. There are integrations with the Spring framework and Joda-Time.

Licenses
Operating Systems
Implementation

Recent releases

  •  08 Feb 2013 08:08

    Release Notes: List type converters should be able to reuse existing lists on target fields. This is important for Hibernate integration. This is done by default, but can be switched off. This release does not require an actual field on the domain object; accessors should be enough. It allows polymorphism on transfer objects. It adds an option to ListTypeConverter for whether null should be kept or converted to an empty list. It adds convertList(), which converts a list of objects. It allows sorting in ListTypeConverter.

    •  20 Jan 2013 20:05

      Release Notes: A demo module was added that uses Hibernate and Lombok. Conversion now uses getters and setters on the domain objects, as this is needed to avoid problems with Hibernate lazy loading. Collections need special handling; this release adds a base type converter that accepts the type of the transfer objects. It adds a type converter that updates linked objects but does not update objects in the domain. This is very practical or controlling links between objects without allowing the objects themselves to be modified.

      •  06 Jan 2013 07:37

        Release Notes: This release adds the ability to map a transfer object field to a transitive field in the domain object.

        Screenshot

        Project Spotlight

        OpenStack4j

        A Fluent OpenStack client API for Java.

        Screenshot

        Project Spotlight

        TurnKey TWiki Appliance

        A TWiki appliance that is easy to use and lightweight.