Created
November 21, 2016 02:29
-
-
Save appleshan/58c112742efeab6413a82a0539fb9666 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package demo.datax.entity; | |
import org.apache.commons.lang3.builder.ReflectionToStringBuilder; | |
import org.apache.commons.lang3.builder.ToStringStyle; | |
public class DemoEntity { | |
private String id; | |
private String name; | |
public String getId() { | |
return id; | |
} | |
public void setId(String id) { | |
this.id = id; | |
} | |
public String getName() { | |
return name; | |
} | |
public void setName(String name) { | |
this.name = name; | |
} | |
@Override | |
public String toString() { | |
return ReflectionToStringBuilder.toString(this, ToStringStyle.MULTI_LINE_STYLE, true, true); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment