B. TIger
B. TIger

Reputation: 560

How can a I create a field on my class that's autoincremented from zero to 255

to create a sequence on JPA I normaly use this @GeneratedValue(strategy=GenerationType.AUTO) @SequenceGenerator(name="example_sequence", sequenceName="example_sequence")

But I want to create a sequence that is also generated automatically but it increments from 0 to 255 and when this value is acheived it restarts from zero

Upvotes: 0

Views: 127

Answers (1)

Related Questions