@Remote
public interface UserSessionBeanRemote extends Serializable {
+ /**
+ * Updates entiity from given user instance and returns updated instance.
+ * <p>
+ * @param user User instance to update
+ * <p>
+ * @return Updated user instance
+ */
+ User updateUserData (final User user);
+
/**
* Find user by given user id and returns fetched instance. If the user is
* not found, an exception is thrown.
* Updates given user instance in database
* <p>
* @param user User instance to update
+ * <p>
+ * @return Updated user instance (detached)
*/
- void updateUserPersonalData (final User user);
+ User updateUserPersonalData (final User user);
}