ObjectDB ObjectDB

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 

Manoj Kumar Maharana
edit
delete
#2

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

ObjectDB Support
ObjectDB - Fast Object Database for Java (JPA/JDO)
edit
delete
#3

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

edit
delete
#4

ObjectDB ignores UniqueConstraint anyway. Unfortunately the question is unclear.

 

ObjectDB Support
ObjectDB - Fast Object Database for Java (JPA/JDO)
edit
delete
#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!

edit
delete

Reply

To post on this website please sign in.