[android-developers] Re: how to implement UniqueFieldValueConstraint in db4o on Android ?

2011-07-12 Thread Gamlor
Just another hint: Have you added a index for the 'id'-field? Otherwise the unique constrain doesn't work. On Jul 7, 5:03 pm, Gamlor gamlerh...@gmail.com wrote: Hi. I've answered this also on the db4o forum. This is a copy of my answer: Which version of db4o are you using? To me that looks

[android-developers] Re: how to implement UniqueFieldValueConstraint in db4o on Android ?

2011-07-08 Thread Gamlor
Hi. I've answered this also on the db4o forum. This is a copy of my answer: Which version of db4o are you using? To me that looks like some kind of regression / accidental API breakage. Instead of the UniqueFieldValueConstraintViolationException the EventException is thrown. The unique-field

[android-developers] Re: Odp: DB4O Native query time issue

2011-07-08 Thread Gamlor
Oups, sent my answer directly instead posting it here. Here is it for everyone: Hi. The issue is that the Native Query optimizes doesn't work on Android. The reason is that this optimizer looks at the Java-byte-code which isn't available on Android. So you have two possibilities. Use a

[android-developers] Re: db4o SODA query giving result null on ordering descending

2011-07-08 Thread Gamlor
Hi. I couldn't reproduce the issue. Which version of db4o are you using? On Jun 10, 1:41 pm, imran ali imran...@gmail.com wrote: Hi all, I have been using db4o in my project,i have to search result and arrange in Descending order according to particular filed. I follow below code, but am

[android-developers] Re: db4o SODA query giving result null on ordering descending

2011-07-08 Thread Gamlor
Hi again. I could reproduce a NullPointer exception when I specified a not existing field in the order clause. Have you checked that the '_rating' field really exists? Anyway, created a bug-entry for that issue: http://tracker.db4o.com/browse/COR-2216 On Jul 8, 5:48 pm, Gamlor gamlerh