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

« back to all changes in this revision

Viewing changes to test/org/hibernate/test/util/dtd/Child.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.util.dtd;
 
2
 
 
3
/**
 
4
 * The Child class.
 
5
 *
 
6
 * @author Steve Ebersole
 
7
 */
 
8
public class Child {
 
9
        private Long id;
 
10
        private int age;
 
11
        private Parent parent;
 
12
 
 
13
        public Child() {
 
14
        }
 
15
 
 
16
        public Long getId() {
 
17
                return id;
 
18
        }
 
19
 
 
20
        public Parent getParent() {
 
21
                return parent;
 
22
        }
 
23
 
 
24
        public int getAge() {
 
25
                return age;
 
26
        }
 
27
 
 
28
        public void setAge(int age) {
 
29
                this.age = age;
 
30
        }
 
31
 
 
32
 
 
33
        /*package*/ void injectParent(Parent parent) {
 
34
                this.parent = parent;
 
35
        }
 
36
}