From f9909b6d19979109b8acdb9e4d07fdd0da9293e4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Thu, 21 Apr 2016 12:32:22 +0200 Subject: [PATCH] Continued: - added business method updateUserData() for updating user data. - updateUserPersonalData() now returns updated (detached) user instance --- .../jusercore/model/user/UserSessionBeanRemote.java | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) 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); } -- 2.39.5