Mail Impressum Werner Diwischek
j-tree logo JTree
- -


Core Sources


JTree operates with path accessor methods on complex java objects without changing them. This could be Beans, JSONObjects or hibernate persistent objects.

JTree is developed to transform "name equivalent" object structures.

It can be used without preliminaries and published on Github this year.

Elementary Methods

Path access

The methods of JTree uses string paths to localize a value of an object. A slash "/" is used as delimiter, eg. "/subObject/name". I like this notation, since a complex object resembles a file system.



Relative Paths

Looping names


The MapperFactory offers some simple methods to map one type to another. These transformations are really simple when realized with JTree.


This maps input to a bean class. This could also usefull e.g. for upcasting.


With hibernate objects we need some informations about the paths to map to avoid infinite mapping on the persistent object.


Base of JTree are operators with put/get/create methods. There is a hibernate operator extending the bean operator for persisting objects to the DB automatically.

Name Equivalency

In java applications one has a lot of work mapping data from one form to another. With JSON one can automate these transformations keeping the names synchronized with the associated java class.

Using XML one always need some transformation information. There are infinite possibilities to define such transformation configurations.

This is the same problem when using JAVA to create serialized objects or deserialize objects.

Name equivalence is the core of creating a generic hibernate class in JDBee. No mapping classes or configurations are needed any more.

java duke with deers
created by hand (3.12.2014 11:10)
complexity is easy, simplicity is hard work.