@GeneratedValue: Difference between revisions
Jump to navigation
Jump to search
Line 10: | Line 10: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Used together with [[@Id]] when relying on the database to automatically generate the ID value, define "strategy = AUTO". |
Revision as of 04:28, 19 October 2018
Internal
Overview
@GeneratedValue(strategy = GenerationType.AUTO)
Used together with @Id when relying on the database to automatically generate the ID value, define "strategy = AUTO".