| Line | |
|---|
| 1 | package org.nakedobjects.application.accounts.dom; |
|---|
| 2 | |
|---|
| 3 | import org.nakedobjects.applib.AbstractDomainObject; |
|---|
| 4 | import org.nakedobjects.applib.annotation.Bounded; |
|---|
| 5 | import org.nakedobjects.applib.annotation.Optional; |
|---|
| 6 | |
|---|
| 7 | @Bounded |
|---|
| 8 | public class Category extends AbstractDomainObject { |
|---|
| 9 | private String name; |
|---|
| 10 | private String description; |
|---|
| 11 | |
|---|
| 12 | public String title() { |
|---|
| 13 | return name; |
|---|
| 14 | } |
|---|
| 15 | |
|---|
| 16 | public String getName() { |
|---|
| 17 | return name; |
|---|
| 18 | } |
|---|
| 19 | |
|---|
| 20 | public void setName(String name) { |
|---|
| 21 | this.name = name; |
|---|
| 22 | } |
|---|
| 23 | |
|---|
| 24 | @Optional |
|---|
| 25 | public String getDescription() { |
|---|
| 26 | return description; |
|---|
| 27 | } |
|---|
| 28 | |
|---|
| 29 | public void setDescription(String description) { |
|---|
| 30 | this.description = description; |
|---|
| 31 | } |
|---|
| 32 | } |
|---|
| 33 | |
|---|
| 34 | |
|---|
| 35 | // Copyright (c) Naked Objects Group Ltd. |
|---|