For example:
@AutoPropert public class CircularReference { private String data; @Property(policy=PojomaticPolicy.NONE) private CircularReference circularReference; // Setter, Getters, Constructors & Pojomatic... }
CircularReference cr1 = new CircularReference(); cr1.setData("RRR"); cr1.setCircularReference(cr1); System.out.println(cr1);
CircularReference{data: {RRR}}
No comments:
Post a Comment