Message:
A new issue has been created in JIRA.
---------------------------------------------------------------------
View the issue:
http://objectstyle.org/jira/secure/ViewIssue.jspa?key=CAY-323
Here is an overview of the issue:
---------------------------------------------------------------------
Key: CAY-323
Summary: Cayenne thinks array types are modified across request/response cycles
Type: Improvement
Status: Assigned
Priority: Major
Project: Cayenne
Components:
Cayenne Core Library
Versions:
1.1
Assignee: Andrus Adamchik
Reporter: Michael Gentry
Created: Sun, 29 May 2005 10:00 AM
Updated: Sun, 29 May 2005 10:00 AM
Environment: All OS + Servlets
Description:
When Cayenne is used in a web-based application, such as Tapestry, and DataObjects are serialized in the session between request/response loops, any array data types are reconstituted to new memory locations when deserialzed. Because the equals() method in Java compares pointers for arrays instead of comparing the contents of the array, Cayenne believes the array attribute has been modified even if the contents haven't changed (equivalent array values are considered modified). This will cause Cayenne to potentially issue unneeded UPDATE statements or to include array attributes which haven't changed (even though other attributes changed in that row).
This problem is particularly noticeable when your primary keys are byte arrays. :-)
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://objectstyle.org/jira/secure/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
This archive was generated by hypermail 2.0.0 : Sun May 29 2005 - 10:01:21 EDT