mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-13 04:15:06 +00:00
[PR #3807] Suggestions applied: Remove hopeful note that didn't pan out, removed JDK7 examples (too old to bother listing at this point).
This commit is contained in:
2 files changed
+3
-8
No files matched your search
@@ -7,12 +7,9 @@ import javax.persistence.Id;
|
||||
import javax.persistence.Column;
|
||||
import javax.validation.constraints.Max;
|
||||
|
||||
// @AllArgsConstructor(onConstructor=@__(@Inject)) //JDK7
|
||||
@AllArgsConstructor(onConstructor_=@Inject) //JDK8
|
||||
@AllArgsConstructor(onConstructor_=@Inject)
|
||||
public class OnXExample {
|
||||
// @Getter(onMethod=@__({@Id, @Column(name="unique-id")})) //JDK7
|
||||
// @Setter(onParam=@__(@Max(10000))) //JDK7
|
||||
@Getter(onMethod_={@Id, @Column(name="unique-id")}) //JDK8
|
||||
@Setter(onParam_=@Max(10000)) //JDK8
|
||||
@Getter(onMethod_={@Id, @Column(name="unique-id")})
|
||||
@Setter(onParam_=@Max(10000))
|
||||
private long unid;
|
||||
}
|
||||
Reference in new issue
Block a user