Skip to content

Commit

Permalink
Update onXExample_pre.jpage
Browse files Browse the repository at this point in the history
Update `onX` example, to make the JDK 8 `onConstructor` syntax more clear.
  • Loading branch information
jevanlingen authored Jan 8, 2025
1 parent 9f9668f commit 5b44540
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion website/usageExamples/experimental/onXExample_pre.jpage
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ import javax.persistence.Id;
import javax.persistence.Column;
import javax.validation.constraints.Max;

@AllArgsConstructor(onConstructor=@__(@Inject))
// @AllArgsConstructor(onConstructor=@__(@Inject)) //JDK7
@AllArgsConstructor(onConstructor_=@Inject) //JDK8
public class OnXExample {
// @Getter(onMethod=@__({@Id, @Column(name="unique-id")})) //JDK7
// @Setter(onParam=@__(@Max(10000))) //JDK7
Expand Down

0 comments on commit 5b44540

Please sign in to comment.