Package com.github.drinkjava2.jdialects.annotation.jdia

Annotation Types Summary
AutoId A shortcut annotation equal to @GenertedValue(strategy=GenerationType.AUTO)
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)
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)
UUID25 A shortcut annotation equal to @GenertedValue(strategy=GenerationType.UUID25)
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 © 2018. All rights reserved.