Module spring.data.relational
Annotation Interface Sequence
Specify the sequence from which the value for the
Id should be fetched.- Since:
- 3.5
- Author:
- Mikhail Polivakha
-
Optional Element Summary
Optional Elements
-
Element Details
-
value
The name of the sequence from which the id should be fetched- Default:
- ""
-
sequence
Alias forvalue()- Default:
- ""
-
schema
String schemaSchema where the sequence resides. For instance, in Oracle databases the schema and user are often used interchangeably, so theschemaattribute may represent an Oracle user as well.The final name of the sequence to be queried for the next value will be constructed by the concatenation of schema and sequence:
schema().sequence()
- Default:
- ""
-