Hibersap converters are currently just working with primitive fields. If I want to convert a table or structure parameter, Hibersap has to know to which structure type the JCo structure has to be converted. The converter can then do user-defined mapping from this structure type to another type.
E.g.
@Table
@Parameter("CUSTOMER_DATA")
@Convert(converter = CustomerDataAggregator.class, structureType = CustomerDataLine.class)
private CustomerDataAggregated customerData;
In the example, the converter's responisbility is to aggregate data from the BAPI table and put it into a single object.
Maybe it would be better to pass a Map (for a structure parameter) or a List of Maps (for a table parameter) to the convert methods, thus there is no need of an intermediate object like CustomerDataLine in the example.
At least this could be the default when no structureType property is set on the annotation.
moved to github tracker