Menu

Home

AISHOUA

Goals:
1. transfer a POJO into another POJO or entity.
2. annotate only the less important classes.
Exmple: You want to transfor the data - from external System using a WebService, which creates a WS-POJO.java - into your Entity. And to print your Entity into PDF, you must transfer the data from the Entity into PDF-POJO using

Transformer#transformObject(...)

For this work you annotate the WS-POJO to transfoer the data from WS-POJO into Entity.
Then To transfor the data from Entity into PDF-POJO you annotate the PDF-POJO and use the inverse funtion

Transformer#transformObjectInverse(...)

In both cases you dont need to add any annotations in the Entity, which keeps your core clean and readable.

HowToUse:

@TransMember
private String name;

@TransMember(targetMemberName = "model")
private String version;

@TransMember(targetMemberName = "speedValue.hp")
private Integer hp;

However, for mare examples check the JUnit Classes in source.jar

Project Members:


Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.