Re: DataObject states

From: Todd O'Bryan (toddobrya..ac.com)
Date: Wed Jul 06 2005 - 10:18:21 EDT

  • Next message: McDaniel, Joe R.: "RE: Parenthesis in queries."

    Maybe you should post the code.

    On Jul 6, 2005, at 8:38 AM, Dhruti Ramani wrote:

    > Yes after I add some specific user to UserRole, i say
    > dataContext.commitChanges(). But still the state is "modifief".
    >
    >
    >
    > Todd O'Bryan <toddobrya..ac.com> wrote:
    > Are you committing changes?
    >
    > On Jul 5, 2005, at 1:26 PM, Dhruti Ramani wrote:
    >
    >> not getting any error. it just does not set the user to UserRole.
    >>
    >> Todd O'Bryan <toddobrya..ac.com> wrote:
    >> What kind of error are you getting? compile-time, run-time? What
    >> is the actual error?
    >>
    >> Todd
    >>
    >> On Jul 5, 2005, at 12:47 PM, Dhruti Ramani wrote:
    >>
    >>> 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
    >>
    >> __________________________________________________
    >> Do You Yahoo!?
    >> Tired of spam? Yahoo! Mail has the best spam protection around
    >> http://mail.yahoo.com
    >
    > __________________________________________________
    > Do You Yahoo!?
    > Tired of spam? Yahoo! Mail has the best spam protection around
    > http://mail.yahoo.com



    This archive was generated by hypermail 2.0.0 : Wed Jul 06 2005 - 10:18:23 EDT