Snapshotting state
The snapshot() element indicates whether the property should be included/excluded from any snapshots generated by the XmlSnapshotService.
For example:
import lombok.Getter;
import lombok.Setter;
public class Order {
@Property(snapshot=EXCLUDED)
@Getter @Setter
private Order previousOrder;
// ...
}
If the property is derived, then providing only a "getter" will also work:
public class Order {
public Order getPreviousOrder() {...}
...
}