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

« back to all changes in this revision

Viewing changes to test/org/hibernate/test/interceptor/Image.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.interceptor;
 
2
 
 
3
public class Image {
 
4
 
 
5
        private Long id;
 
6
        private String name;
 
7
        private Details details;
 
8
 
 
9
        public Details getDetails() {
 
10
                return details;
 
11
        }
 
12
 
 
13
        public Long getId() {
 
14
                return id;
 
15
        }
 
16
 
 
17
        public String getName() {
 
18
                return name;
 
19
        }
 
20
 
 
21
        public void setDetails(Details details) {
 
22
                this.details = details;
 
23
        }
 
24
 
 
25
        public void setId(Long id) {
 
26
                this.id = id;
 
27
        }
 
28
 
 
29
        public void setName(String name) {
 
30
                this.name = name;
 
31
        }
 
32
 
 
33
        public String toString() {
 
34
                return "Image/" + ( details == null ? "no details" : details.toString() );
 
35
        }
 
36
 
 
37
        public static class Details {
 
38
                private long perm1 = -1; // all bits turned on.
 
39
                private String comment;
 
40
 
 
41
                protected long getPerm1() {
 
42
                        return this.perm1;
 
43
                }
 
44
 
 
45
                protected void setPerm1(long value) {
 
46
                        this.perm1 = value;
 
47
                }
 
48
 
 
49
                public String getComment() {
 
50
                        return comment;
 
51
                }
 
52
 
 
53
                public void setComment(String comment) {
 
54
                        this.comment = comment;
 
55
                }
 
56
 
 
57
                public String toString() {
 
58
                        return "Details=" + perm1;
 
59
                }
 
60
        }
 
61
 
 
62
}
 
63