~ubuntu-branches/ubuntu/wily/libhibernate3-java/wily-proposed

« back to all changes in this revision

Viewing changes to test/org/hibernate/test/version/Thing.java

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner
  • Date: 2007-10-14 14:43:34 UTC
  • Revision ID: james.westby@ubuntu.com-20071014144334-eamc8i0q10gs1aro
Tags: upstream-3.2.5
ImportĀ upstreamĀ versionĀ 3.2.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
//$Id: Thing.java 7715 2005-08-01 16:46:57Z oneovthafew $
 
2
package org.hibernate.test.version;
 
3
 
 
4
public class Thing {
 
5
        private String description;
 
6
        private Person person;
 
7
        private int version;
 
8
        private String longDescription;
 
9
        
 
10
        public int getVersion() {
 
11
                return version;
 
12
        }
 
13
        public void setVersion(int version) {
 
14
                this.version = version;
 
15
        }
 
16
        Thing() {}
 
17
        public Thing(String description, Person person) {
 
18
                this.description = description;
 
19
                this.person = person;
 
20
                person.getThings().add(this);
 
21
        }
 
22
        public String getDescription() {
 
23
                return description;
 
24
        }
 
25
        public void setDescription(String description) {
 
26
                this.description = description;
 
27
        }
 
28
        public Person getPerson() {
 
29
                return person;
 
30
        }
 
31
        public void setPerson(Person person) {
 
32
                this.person = person;
 
33
        }
 
34
        public String getLongDescription() {
 
35
                return longDescription;
 
36
        }
 
37
        public void setLongDescription(String longDescription) {
 
38
                this.longDescription = longDescription;
 
39
        }
 
40
}