From 312a5ce293b2202afd70efeb7df68b79ab4fb8c5 Mon Sep 17 00:00:00 2001 From: Notmoo Date: Sat, 19 Aug 2017 19:06:20 +0200 Subject: [PATCH] Module Core, clss Account : ajout constructeur de recopie --- .../main/java/com/pqt/core/entities/user_account/Account.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Workspace/core/src/main/java/com/pqt/core/entities/user_account/Account.java b/Workspace/core/src/main/java/com/pqt/core/entities/user_account/Account.java index a37517d1..f3d7ad34 100644 --- a/Workspace/core/src/main/java/com/pqt/core/entities/user_account/Account.java +++ b/Workspace/core/src/main/java/com/pqt/core/entities/user_account/Account.java @@ -23,6 +23,10 @@ public class Account implements ILoggable, Serializable { this.permissionLevel = permissionLevel; } + public Account(Account account) { + this(account.getUsername(), account.getPassword(), account.getPermissionLevel()); + } + public String getUsername() { return username; }