Problem with Criteria for Fetch

0 views
Skip to first unread message

Bill Larman

unread,
Jul 23, 2008, 5:42:53 AM7/23/08
to CslaGenerator
Andres,

Following on from
http://groups.google.com/group/CslaGenerator/browse_thread/thread/fb89668c1f699b71#
and our recent discussions I feel that the Fetch issue needs
addressing as the timestamp is invalid in the Fetch criteria.

My solution would be:
If an object has a timestamp column then
1. Create an additional criteria named CriteriaPK contianing just
theprimary key columns and excluding the timestamp column (i.e, same
aCriteria without timestamp)
2. Move the Fetch info from the Criteria criteria to the
newCriteriaPK.
If the object does NOT have a timestamp column then leave the code as
it is.

There are times when I would want to use this CriteriaPK on thedelete,
but am happy to leave the delete defaulting to using theCriteria
criteria.
(e.g. See DeleteSelf within an EditableChild which is correctly
usingjust the PK and ignores the timestamp column even when one
exists).

Bill

Andrés

unread,
Jul 23, 2008, 4:18:10 PM7/23/08
to CslaGe...@googlegroups.com
I'll look into this for next release.
--
Andrés
Reply all
Reply to author
Forward
0 new messages