Re: Prefetched Query

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Mon Feb 27 2006 - 08:27:05 EST

  • Next message: Cris Daniluk: "Re: Generics"

    Emre,

    Thanks for the bug report. Like I said, I could not reproduce the
    problem using your earlier description. So could you please attach a
    DataMap file to the Jira issue (using "Attach File" link on the left)
    to ensure that I am working with the same schema.

    Andrus

    On Feb 27, 2006, at 10:57 AM, <emre.yilma..r.net>
    <emre.yilma..r.net> wrote:

    > Thank you. I registered it with Prefetched Query Refresh Bug for
    > refreshing
    > entities of query table only one time.
    > If you look it, I put the results of my solution like :
    >
    > PersonelCard = Object Entity;
    > badgeNo = attribute of PersonelCard;
    > PersonelRel = Relationship of PersonelCard to Personel
    > Personel = Object Entity;
    > firstName = attribute of Personel;
    >
    > Prefetched objects of PersonelCard's relational tables(like
    > PersonelRel)
    > refreshed correctly but attiributes (like badgeNo) of PersonelCard
    > table
    > refreshed only first update.
    >
    > For example: if you change the firstName "ex1",then "ex2" then
    > "ex3" then "ex4"
    > console prints for firstName:
    > ex1
    > ex2
    > ex3
    > ex4 This is correct.(PersonelRel.firstName)
    >
    > But when I update the badgeNo like "ex1",then "ex2" then "ex3" then
    > "ex4"
    > console prints for badgeNo:
    > ex1
    > ex2
    > ex2
    > ex2 This is not correct.(PersonelCard.badgeNo)
    >
    >>
    >> Kimden: Andrus Adamchik <andru..bjectstyle.org>
    >> Tarih: 2006/02/25 Sat AM 09:26:23 GMT+02:00
    >> Kime: cayenne-use..bjectstyle.org
    >> Konu: Re: Prefetched Query
    >>
    >>
    >> On Feb 24, 2006, at 11:33 AM, <emre.yilma..r.net>
    >> <emre.yilma..r.net> wrote:
    >>
    >>> I don't find the "query.setRefreshingRefetchedObjects(true)"
    >>> metod for
    >>> SelectQuery. But I have used the
    >>> query.setRefreshingObjects(true). If you mean this, the result not
    >>> changed.
    >>
    >> Yes, this is what I meant, sorry.
    >>
    >>
    >>> I think this is a bug.Maybe I not explain the situation correctly.
    >>> Prefetched objects of PersonelCard's relational tables(PersonelRel)
    >>> refreshed
    >>> correctly but local objects (badgeNo) of PersonelCard table
    >>> refreshed only
    >>> first update.
    >>
    >> I just tested it with M11 and it works fine. Strange... If you can
    >> create a standalone test case that reproduces the alleged bug using
    >> some test schema, please submit it via Jira.
    >>
    >> http://objectstyle.org/cayenne/bugs-features.html
    >>
    >> Andrus
    >>
    >>
    >
    >



    This archive was generated by hypermail 2.0.0 : Mon Feb 27 2006 - 08:27:08 EST