DataObject states

From: Dhruti Ramani (dhrutiraman..ahoo.com)
Date: Tue Jul 05 2005 - 12:47:07 EDT

  • Next message: Todd O'Bryan: "Re: DataObject states"

    Hi,
     
    I have list of SystemUser objects called "Users" and another sublist of Users is called "teamMembers". To get this teamMemembers, i am getting some users from "Users" and sort them by email address. If I print both lists then objects in "Users" has state "committed" and in "teamMemebers" has "modified".
     
    Now if I try to add any object from "User" to some UserRole(cayenne Object) then it will work but if I try to add from "teamMemebets"(state is modified") then it wont work.
     
     Does that persistence state matters? I am not changing anything in objects of "teamMembers" then why i get modified state? I tried to change the state using "setPersistenceState(3)" but then also I could not add that user to UserRole.
     
    Please let me know if I am doing something wrong?
    Thanks,
    Denna

                    
    ---------------------------------
    Yahoo! Sports
     Rekindle the Rivalries. Sign up for Fantasy Football



    This archive was generated by hypermail 2.0.0 : Tue Jul 05 2005 - 12:47:09 EDT