how to implement insert ignore in objectdb?

#1

I want to implement Insert ignore in Objectdb. means if a column is declared as Unique but in case of duplicate it just ignore that row and should not throw exception.

Thanks 

#2

Ignoring duplicates is the default when unique is not specified, so the question is unclear.

ObjectDB Support
#3

But he said the column is specified as unique, right?

#4

ObjectDB ignores UniqueConstraint anyway. Unfortunately the question is unclear.

 

ObjectDB Support
#5

Oh I see, got it. I was just browsing the forum and came across this, so thought I'd chime in :) Hopefully the OP can clarify!

Reply