Hibersap Plugin
Pull request Compare This branch is even with warmuuh:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
.gitignore
COPYING
COPYING.LESSER
README.md
pom.xml

README.md

Hibersap Plugin for Forge

This is a fork of the hibersap forge plugin: https://github.com/forge/plugin-hibersap

Main Change: Introduced Lombok to reduce boiler plate code. Instead of big java files with generated beans, lombok annotations are used to generate:
  • getters and setters
  • Default Constructor (so it can be (de)serialized in xml / json without much effort
  • toString
  • equal, canEqual, hashCode

generated items are now serializable, which is needed for camel-hibersap-plugin

Example

An incomplete example of the generated classes:
@NoArgsConstructor
@ToString
@Data
public @Bapi("BAPI_MATERIAL_SAVEDATA")
class BapiMaterialSavedata implements Serializable
{

@Import @Parameter(value = "PLANTDATA", type = ParameterType.STRUCTURE) private Plantdata _plantdata;

@Export @Parameter(value = "RETURN", type = ParameterType.STRUCTURE) private Return _return;

@Table @Parameter("UNITSOFMEASURE") private List _unitsofmeasure;

public BapiMaterialSavedata(final Plantdata plantdata) { this._plantdata = plantdata; } }

So there will still be a constructor that inits all import-parameter but there is also a no-arg-constructor.

This plugin is under LGPL licence.