I added session.clear() after the save action. And the problems solved.

But it is still weird.

why there is no user.userProfile cache after save action. It is not
reasonable.sigh....



2007/2/11, luo xiao <[EMAIL PROTECTED]>:


Hi, All,

    I have to object.
    public class User
    {
         /**
          * @hibernate.one-to-one name="profile"
          * class="com.capstone.manhour.model.UserProfile"
         * cascade="all"
         *
         * @return
         */
            public UserProfile getProfile() {
              return profile;
             }
    }
    public class UserProfile
    /**
     * @return the user
      * @hibernate.one-to-one name="user"
class="com.capstone.manhour.model.User"
      * constrained = "true"
     */
     public User getUser()
     {
      return user;
     }
    }

    After I save the UserProfile (invoke saveUserProfile() generated by
xdoclet), I list the UserProfile (invoke list() generated by xdoclet ) the
attribute user of the UserProfile that just been edited return null while
the others return the proxy class.

     I am not sure what happen.  Has anyone met the same problem ? Hope to
your response.

 ________________________________

luo xiao
2007-02-11

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

Reply via email to