The transient was added by Scott when he tried to serialize the Criteria. Somehow the default serialisation mechanism did not work for the Criteria.Join object; no idea why. There is no particular reason why the joins are initialized as null and not as empty list. If you want to change that, please go ahead.

  Thomas

On Sun, 6 May 2007, Thomas Vandahl wrote:

[EMAIL PROTECTED] wrote:
                     && asColumns.equals(criteria.getAsColumns())
-                    && joins.equals(criteria.getJoins())
+                    && ObjectUtils.equals(joins, criteria.getJoins())

Actually, I had a look at that code and I asked myself why the list of
joins is handled differently than all other lists in Criteria. Is there
any particular reason why this list is not initialized as empty and
declared as transient?


Bye, Thomas.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to