cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joel Becker <joelbeck...@gmail.com>
Subject Re: commit doesn't work with performIteratedQuery
Date Wed, 25 Jul 2012 20:22:22 GMT
Edit: I am using cayenne 3.0.1

On Wed, Jul 25, 2012 at 9:16 AM, Joel Becker <joelbecker0@gmail.com> wrote:

> Hello,
>
> I am using performIteratedQuery(new SelectQuery(clazz)) and
> objectFromDataRow(). I make changes to each object, but commitChanges() is
> not committing the changes :( . I can see the queries logged:
>
> 2012-07-25 09:12:58,835 [main] INFO  org.apache.cayenne.access.QueryLogger
>  - --- will run 1 query.
> 2012-07-25 09:12:58,835 [main] INFO  org.apache.cayenne.access.QueryLogger
>  - UPDATE xprecinct_part SET reporting_unit_id = ? WHERE vr_id = ?
> 2012-07-25 09:12:58,835 [main] INFO  org.apache.cayenne.access.QueryLogger
>  - [bind: 1->reporting_unit_id:72, 2->vr_id:'20815']
> 2012-07-25 09:12:58,835 [main] INFO  org.apache.cayenne.access.QueryLogger
>  - === updated 1 row.
>
> But when I open the SQLite database file I'm committing to, the changes
> have not taken effect. Any ideas why?
>
> Thanks,
> Joel
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message