aboutsummaryrefslogtreecommitdiff
path: root/usage_examples/onXExample_post.jpage
blob: 1be94f2a410d766cd5e2d3f137db3025ecc959f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import javax.inject.Inject;
import javax.persistence.Id;
import javax.persistence.Column;
import javax.validation.constraints.Max;

public class OnXExample {
	private long unid;

	@Inject
	public OnXExample(long unid) {
		this.unid = unid;
	}

	@Id @Column(name="unique-id")
	public long getUnid() {
		return unid;
	}

	public void setUnid(@Max(10000) long unid) {
		this.unid = unid;
	}
}