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
posted @ 2012-09-26 12:54 七郎 Views(1109) Comments(0) Diggs(0) Edit