how can i solve problem of generating duplicate key while using hibernate sequence generator?
@id
@GeneratedValue(strategy = GenerationType.SEQUENCE,generator="devices_id_seq" )
@SequenceGenerator(name="devices_id_seq",sequenceName="devices_id_seq" )
private int id;