Files
lombok/usage_examples/onXExample_pre.jpage
T
Reinier Zwitserloot ef8769d318 Added all documentation for the onX feature and updated changelog.
Now to actually write the feature (Well, rescue it from the onX-removal tag).
2012-11-17 20:26:58 +01:00

16 lines
383 B
Plaintext

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.Setter;
import javax.inject.Inject;
import javax.persistence.Id;
import javax.persistence.Column;
import javax.validation.constraints.Max;
@AllArgsConstructor(onConstructor=@Inject)
public class OnXExample {
@Getter(onMethod={@Id, @Column(name="unique-id"})
@Setter(onParam=@Max(10000))
private long unid;
}