AUTO
Indicates that the persistence provider should pick an appropriate strategy for the particular database.
IDENTITY
Indicates that the persistence provider must assign primary keys for the entity using database identity column.
SEQUENCE
Indicates that the persistence provider must assign primary keys for the entity using database sequence column.
TABLE
Indicates that the persistence provider must assign primary keys for the entity using an underlying database table to ensure uniqueness. API 下面3种好像 都是 需要主键的
第一种 好像 也不是
那如果 我想 不是 主键 也让他自动增长行吗?
Indicates that the persistence provider should pick an appropriate strategy for the particular database.
IDENTITY
Indicates that the persistence provider must assign primary keys for the entity using database identity column.
SEQUENCE
Indicates that the persistence provider must assign primary keys for the entity using database sequence column.
TABLE
Indicates that the persistence provider must assign primary keys for the entity using an underlying database table to ensure uniqueness. API 下面3种好像 都是 需要主键的
第一种 好像 也不是
那如果 我想 不是 主键 也让他自动增长行吗?
操作数据的时候手动做吧
那不能当成主键吗
为什么一个表中还需要二个不可重复的字段