@GeneratedValue: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 10: Line 10:
</syntaxhighlight>
</syntaxhighlight>


Use when relying on the database to automatically generate the ID value, define "strategy = AUTO".
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".