[aerogear-dev] SQLite Store Order By and Auto Increment ID

Daniel Passos daniel at passos.me
Mon Mar 17 17:11:53 EDT 2014


Hi Thiago,

Nice questions. Answers inline.

On Sun, Mar 16, 2014 at 6:20 PM, Tiago Resende <tiagor87 at gmail.com> wrote:

> Hi guys, thanks for the other day, you really helped me.
>
> I have two questions today.
>
> How can I perform a query using "order by" statement in SQLStore?
>
> I did a readAll, then I ordered in memory using Ordering<T>.
>

Unfortunately. We don't have this option for now.


> The second question is how can I indicate to AeroGear that it should use
> an auto increment primary key for a table. I created an AutoGeneratorId
> Class, but it's not working beautifully for SQLStore. I had to create an
> update method and call it for every object, I didn't like it, but I
> couldn't find a better solution reading the documentation.
>

No, who creates the id is always idGenerator. What's the problem?


> I really appreciate your help.
>
> Thanks.
>
> --
> *Tiago de Carvalho Resende*
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/aerogear-dev/attachments/20140317/0c8aef32/attachment.html 


More information about the aerogear-dev mailing list