// Create email
// Trace message
- this.getLoggerBeanLocal().logTrace(MessageFormat.format("registerUser: addedUser={0},addedUser.userIdd={1} - EXIT!", addedUser, addedUser.getUserId())); //NOI18N
+ this.getLoggerBeanLocal().logTrace(MessageFormat.format("registerUser: addedUser={0},addedUser.userId={1} - EXIT!", addedUser, addedUser.getUserId())); //NOI18N
// Return it
return addedUser;
// Fetch the result, it should be there by now
User user = (User) query.getSingleResult();
- // Should be there
- // @TODO This assertion tests the JPA
- assert (user instanceof User) : "user is null"; //NOI18N
-
// Trace message
this.getLoggerBeanLocal().logTrace(MessageFormat.format("findUserById: user={0} - EXIT!", user)); //NOI18N
this.getLoggerBeanLocal().logTrace(MessageFormat.format("linkUser: user={0} - CALLED!", user)); //NOI18N
// user should not be null
- // @TODO Add check for email address
if (null == user) {
// Abort here
throw new NullPointerException("user is null"); //NOI18N