hibernate 主键生成策略有三种:序列 自增 通用 1、序列 sequence    只能在oracle 和 DB2中使用    
   
   
   
   
2、自增 identity   智能在sqlserver 和 mysql 中使用,同时建表的时候,设置列 为 auto increment。
   
   
3、通用 native   mysql 就用不了了 这个oracle中必须创建一个名字为 hibernate_sequence的序列。