Auto-increment ID

Report a typo

Which generation strategy uses an auto-increment column to generate IDs?

@Entity
public class User {
    
    @Id
    @GeneratedValue(strategy = GenerationType._____)
    private Long id;
    
    // ...
}
Select one option from the list

Create a free account to access the full topic