From: Roland Häder Date: Thu, 21 Apr 2016 10:32:22 +0000 (+0200) Subject: Continued: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=f9909b6d19979109b8acdb9e4d07fdd0da9293e4;p=juser-lib.git Continued: - added business method updateUserData() for updating user data. - updateUserPersonalData() now returns updated (detached) user instance --- diff --git a/src/org/mxchange/jusercore/model/user/UserSessionBeanRemote.java b/src/org/mxchange/jusercore/model/user/UserSessionBeanRemote.java index de17843..7065957 100644 --- a/src/org/mxchange/jusercore/model/user/UserSessionBeanRemote.java +++ b/src/org/mxchange/jusercore/model/user/UserSessionBeanRemote.java @@ -31,6 +31,15 @@ import org.mxchange.jusercore.exceptions.UserNotFoundException; @Remote public interface UserSessionBeanRemote extends Serializable { + /** + * Updates entiity from given user instance and returns updated instance. + *

+ * @param user User instance to update + *

+ * @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. @@ -141,7 +150,9 @@ public interface UserSessionBeanRemote extends Serializable { * Updates given user instance in database *

* @param user User instance to update + *

+ * @return Updated user instance (detached) */ - void updateUserPersonalData (final User user); + User updateUserPersonalData (final User user); }