POJO Module

POJOs or Plain Old Java Objects are the most lightly manipulated classes JavaGen generates.

simple pojo class

Classes containing the <<pojo>> stereotype or no stereotype at all are processed by the pojo module. JavaGen treats POJOs as follows:

  • Getter and setter methods are generated for each attribute marked with the <<property>> stereotype.
  • Getter and setter methods are generated for each association using the name on the association end.
  • Imports are automatically generated.
  • Operations are emitted as methods and a default return type is generated.
  • Abstract model types are converted to their implementation type, for example entities are converted to EJB-specific types when POJOs reference those types.

In general JavaGen's other modules build on the basic transformations performed by the POJO module.