JPA auto increment on a non primary key field
<p>Is it possible to auto-increment a JPA field which is not a PrimaryKey?</p>
<p>I already saw something like creating a new entity with only an id which is auto incremented and to use it on my wanted field, but I have no clue how to make it.</p>