注解配置Oracle自定义序列

@Id
@Column(name = "DEPT_ID")
@SequenceGenerator(name = "fctl", sequenceName = "seq_id", initialValue = 1, allocationSize = 1)

@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "fctl")

private Integer id;


版权声明:本文为qq_21068729原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。