diff options
author | Camil Staps | 2015-04-18 01:04:19 +0200 |
---|---|---|
committer | Camil Staps | 2015-04-18 01:04:19 +0200 |
commit | a62773f7dad7d62208b174b35fcde59c85db3913 (patch) | |
tree | 7359d0e3d60a55d9c053cb88e0e27b34d10ebadc /Week9/src/com/camilstaps/shop/Article.java | |
parent | Week9 (diff) |
Cleanup, checked UML class diagram, added diagram to TeX
Diffstat (limited to 'Week9/src/com/camilstaps/shop/Article.java')
-rw-r--r-- | Week9/src/com/camilstaps/shop/Article.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Week9/src/com/camilstaps/shop/Article.java b/Week9/src/com/camilstaps/shop/Article.java index 92b496f..d22a323 100644 --- a/Week9/src/com/camilstaps/shop/Article.java +++ b/Week9/src/com/camilstaps/shop/Article.java @@ -23,9 +23,9 @@ public class Article extends DatabaseItem { private final float price; /** - * The user who added the article + * The owner who added the article */ - private final User user; + private final User owner; /** * Straightforwardly creating a new article @@ -35,14 +35,14 @@ public class Article extends DatabaseItem { * @param price */ public Article(User user, String name, Category category, float price) { - this.user = user; + this.owner = user; this.name = name; this.category = category; this.price = price; } - public User getUser() { - return user; + public User getOwner() { + return owner; } public String getName() { |