aboutsummaryrefslogtreecommitdiff
path: root/usage_examples/experimental/onXExample_pre.jpage
blob: fa03e2cd62e07b10198e7f1a1accd068ef5963c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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;
}