jmapper-framework / jmapper-core

Elegance, high performance and robustness all in one java bean mapper
http://jmapper-framework.github.io/jmapper-core
Apache License 2.0
227 stars 41 forks source link

JMapper with Lambok #92

Open sudeerjoshi opened 3 years ago

sudeerjoshi commented 3 years ago

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 ?

Shryne commented 3 years ago

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.