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

« back to all changes in this revision

Viewing changes to test/org/hibernate/test/jpa/Item.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
package org.hibernate.test.jpa;
 
2
 
 
3
import java.util.Set;
 
4
import java.util.HashSet;
 
5
 
 
6
/**
 
7
 * @author Steve Ebersole
 
8
 */
 
9
public class Item {
 
10
        private Long id;
 
11
        private String name;
 
12
        private long version;
 
13
        private Set parts = new HashSet();
 
14
 
 
15
        public Item() {
 
16
        }
 
17
 
 
18
        public Item(String name) {
 
19
                this.name = name;
 
20
        }
 
21
 
 
22
        public Long getId() {
 
23
                return id;
 
24
        }
 
25
 
 
26
        public void setId(Long id) {
 
27
                this.id = id;
 
28
        }
 
29
 
 
30
        public String getName() {
 
31
                return name;
 
32
        }
 
33
 
 
34
        public void setName(String name) {
 
35
                this.name = name;
 
36
        }
 
37
 
 
38
        public long getVersion() {
 
39
                return version;
 
40
        }
 
41
 
 
42
        public void setVersion(long version) {
 
43
                this.version = version;
 
44
        }
 
45
 
 
46
        public Set getParts() {
 
47
                return parts;
 
48
        }
 
49
 
 
50
        public void setParts(Set parts) {
 
51
                this.parts = parts;
 
52
        }
 
53
}