jmapper-core icon indicating copy to clipboard operation
jmapper-core copied to clipboard

JMapper with Lambok

Open sudeerjoshi opened this issue 5 years ago • 1 comments

I am using JMapper with some POJO classes which has setter getter methods and it's working fine, when I removed all setters and getters and used Lombok for the same, I am getting MalformedBean exception saying get....() not found ...will JMapper supports working with Lombok?

@Data(from lombok) // generates getters and setters public class Document {

protected FIToFIPaymentStatusReportV06 fiToFIPmtStsRpt;

}

for this ?

sudeerjoshi avatar Nov 12 '20 09:11 sudeerjoshi

JMapper works with Lombok. Example:

@Getter
@Setter
public class Foo {
  @JMap("somethingElse")
  private int bar;
}

This should work with your setup. If it does, try to convert it to your use case step by step and see what's wrong. It's certainly not Lombok.

Shryne avatar Dec 08 '20 15:12 Shryne