Re: Bug in DataRowsUtils
Mark Stobbe <[email protected]>
| Newsgroups | gmane.comp.java.cayenne.user |
|---|---|
| Message-ID | <CAHdRq5-Ug1UbLro22OVC5UbfmU_6JQ+8ZFZeJ9aCAQGdfeU0Xw@mail.gmail.com> |
Nice, exactly the solution that I also implemented!! On Wed, Nov 11, 2020 at 2:16 PM John Huss <[email protected]> wrote: > 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 > > > > >