| Annotation Type | Description |
|---|---|
| AutoId |
A shortcut annotation equal to @GenertedValue(strategy=GenerationType.AUTO)
|
| COLUMN |
Similar like JPA's @Column annotation, but enhenced with extra fields
like tail, comment, createTimestamp, UpdateTimestamp, createdBy,
LastModifiedBy
|
| CreatedBy |
Mark a CreatedBy column, explained by ORM tool
|
| CreateTimestamp |
Mark a CreateTimestamp column, explained by ORM tool
|
| FKey |
Specifies the foreign key
|
| FKey1 |
Specifies the foreign key
|
| FKey2 |
Specifies the foreign key
|
| FKey3 |
Specifies the foreign key
|
| IdentityId |
A shortcut annotation equal to
@GenertedValue(strategy=GenerationType.IDENTITY)
|
| LastModifiedBy |
Mark a LastModifiedBy column, explained by ORM tool
|
| PKey |
Specifies the primary key of an entity.
|
| ShardDatabase |
To mark this column is a ShardDatabase column, one table only allow 1 column
be marked as ShardDatabase column
|
| ShardTable |
To mark this column is a shardTable column, one table only allow 1 column be
marked as shardiTable column
|
| SingleFKey |
A shortcut annotation of FKey, only for one column
|
| SingleIndex |
A shortcut annotation of Index, only for one column
|
| SingleUnique |
A shortcut annotation of Unique, only for one column
|
| Snowflake |
Mark a Long type column value build by using SnowFlake algorithm from twitter
In jDialects SnowFlake algorithm source code originated from: https://github.com/downgoon/snowflake The SnowFlake algorithm follows below basic rule: 1 bit const=0 41 bits Timestamp based on machine 10 bits Confighured by user, used as machine ID, an example is assign 5 bits for dataCenterID + 5 bits for workerID 12 bits Sequence number |
| TimeStampId |
A shortcut annotation equal to @GenertedValue(strategy=GenerationType.TIMESTAMP_ID)
|
| UpdateTimestamp |
Mark a UpdateTimestamp column, explained by ORM tool
|
| UUID |
A shortcut annotation equal to @GenertedValue(strategy=GenerationType.UUID)
|
| UUID25 |
A shortcut annotation equal to @GenertedValue(strategy=GenerationType.UUID25)
|
| UUID26 |
A shortcut annotation equal to @GenertedValue(strategy=GenerationType.UUID26)
|
| UUID32 |
A shortcut annotation equal to @GenertedValue(strategy=GenerationType.UUID32)
|
| UUID36 |
A shortcut annotation equal to @GenertedValue(strategy=GenerationType.UUID36)
|
| UUIDAny |
Defines a primary key generator that may be referenced by name when
a generator element is specified for the
GeneratedValue
annotation. |
Copyright © 2022. All rights reserved.