jpa generationtype sequence mysql
456678
jpa generationtype sequence mysql
In Dec 2020, you still can’t use this strategy (SEQUENCE) with a MySQL database.
It requires a database sequence, and MySQL doesn’t support this feature.
If you’re working with a MySQL database, you should always use
GenerationType.IDENTITY. It uses an autoincremented database column and
is the most efficient approach available. You can do that by annotating
your primary key attribute with
@GeneratedValue(strategy = GenerationType.IDENTITY).
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us