when i m trying to update column based on if exist to database its returns me an error like "UNIQUE constraint failed"
my model class is like,
@Column(name = "QID", unique = true)
private Integer ID;
@Expose
@Column(name = "WorkBookID", onUniqueConflicts = {Column.ConflictAction.REPLACE})
private Integer WorkBookID;
when i m trying to update column based on if exist to database its returns me an error like "UNIQUE constraint failed" my model class is like, @Column(name = "QID", unique = true) private Integer ID; @Expose @Column(name = "WorkBookID", onUniqueConflicts = {Column.ConflictAction.REPLACE}) private Integer WorkBookID;
where i m wrong?