Here my POJO:
public class AutorDenormalized {
private String id;
private Long unitatId;
private String grupId;
private String descripcio;
public AutorDenormalized() {
}
// getters $ setters
}
I'd like to serialise this kind of objects adding a suffix according to field type. I mean,
- If field type is a String -> then add a
*_ssuffix - If field type is a Long -> then add a
*_lsuffix - Otherwise keep going
Do you have any ideas how to solve it?