Created Account class to separate identification from the Owner
[RRRRHHHH_Code] / ruralHouses / src / domain / Account.java
1 package domain;
2
3 public class Account {
4
5         
6
7         private String username="";
8         private String password="";
9         private Owner owner;
10         
11         public Account (String usr, String pass, Owner ow){
12                 this.username = usr;
13                 this.password= pass;
14                 this.owner= ow;
15                 
16         }
17
18         public String getUsername() {
19                 return username;
20         }
21
22         public String getPassword() {
23                 return password;
24         }
25
26         public Owner getOwner() {
27                 return owner;
28         }
29         
30
31         
32 }