1.选择java类型,会生成Long,hibernate只会生成long2.SEQUENCE主键 @Id @GeneratedValue(strategy = GenerationType.SEQUENCE,generator="role_seq") @SequenceGenerator(name="role_seq", sequenceName="SEQ_SYS_ROLES") @Column(name = "ID", unique = true, nullable = false, precision = 22 Read More