mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-05 06:13:57 +00:00
Now to actually write the feature (Well, rescue it from the onX-removal tag).
16 lines
383 B
Plaintext
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;
|
|
}
|