Kommentiert und getestet
This commit is contained in:
		| @@ -10,7 +10,7 @@ public class Account { | ||||
| 	// region Felder | ||||
| 	private String passwort; | ||||
|  | ||||
| 	private transient int id; | ||||
| 	private /*transient*/ int id; | ||||
|  | ||||
| 	private String name; | ||||
|  | ||||
| @@ -65,5 +65,17 @@ public class Account { | ||||
| 		else if (this instanceof ElternAccount) | ||||
| 			rid = 1; | ||||
| 	} | ||||
|  | ||||
| 	public Account(int id, String passwort, String name, String email) { | ||||
| 		this.id = id; | ||||
| 		this.passwort = passwort; | ||||
| 		this.name = name; | ||||
| 		this.email = email; | ||||
|  | ||||
| 		if(this instanceof MitarbeiterAccount) | ||||
| 			rid = 0; | ||||
| 		else if (this instanceof ElternAccount) | ||||
| 			rid = 1; | ||||
| 	} | ||||
| 	// endregion | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user