[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:
Reinier Zwitserloot committed 2025-03-30 00:54:34 +01:00
1 parent 0b886857e1
commit 47fa4c2fac
2 files changed
+3 -8

No files matched your search

@@ -11,8 +11,6 @@
<ul>
<li>
Ugly syntax. The syntax of this feature is not optimal, but it is the least convoluted syntax that could possibly work (for now!)
</li><li>
Possibly java 9 will offer (much) better ways of supporting this feature.
</li><li>
Uncertainty: Future versions of javac may break this feature, and we may not be able to restore it.
</li>
@@ -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;
}