+ "VALUES ('" + user.getUsername() + "', '" + new String(user.getPassword()) + "', "
+ (user.isAdmin() ? 1 : 0) + ")");
log("User '" + user.getUsername() + "' created with password = '******' and admin = '" + user.isAdmin()+ "'");
} catch (SQLException ex) {
if (ex.getErrorCode() == 30000) {
throw new ExistingUserException();
} else {
Logger.getLogger(PersistenceManager.class.getName()).log(Level.SEVERE, null, ex);
throw new PersistenceManagerException();
}
} finally {