Re: Bug in DataRowsUtils

John Huss <[email protected]>
Newsgroups gmane.comp.java.cayenne.user
Message-ID <CAOUwSGv3nSA7MD7ULWVpO0ocbozzt_XdUc3aaC8s2X=tiWh5ug@mail.gmail.com>
I also dislike this behavior, but I think it is intentional.

As I workaround I lowercase all the DbAttribute names in my DataMap at
startup and make sure all my MappedSelects use lowercase names.

On Wed, Nov 11, 2020 at 3:38 AM Mark Stobbe <[email protected]> wrote:

> Hi all,
>
>
>
> I was using MappedSelect to query for objects and I was surprised to see I
>
> was returned a HOLLOW object. After some investigation I found that
>
> in DataRowUtils.refreshObjectWithSnapshot there is a check if we
>
> fetched the whole object using a map.
>
>
>
> However, the check ("snapshot.containsKey(dbAttrPath)") does not take into
>
> account the casing difference between database and datamap. This does work
>
> in the rest of Cayenne, but not here.
>
>
>
> Mark
>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.