Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Source code: org/hibernate/test/generatedkeys/identity/MyEntity.java


1   package org.hibernate.test.generatedkeys.identity;
2   
3   import java.util.Set;
4   import java.util.HashSet;
5   
6   /**
7    * @author Steve Ebersole
8    */
9   public class MyEntity {
10    private Long id;
11    private String name;
12    private MySibling sibling;
13    private Set nonInverseChildren = new HashSet();
14    private Set inverseChildren = new HashSet();
15  
16    public MyEntity() {
17    }
18  
19    public MyEntity(String name) {
20      this.name = name;
21    }
22  
23    public Long getId() {
24      return id;
25    }
26  
27    public void setId(Long id) {
28      this.id = id;
29    }
30  
31    public String getName() {
32      return name;
33    }
34  
35    public void setName(String name) {
36      this.name = name;
37    }
38  
39    public MySibling getSibling() {
40      return sibling;
41    }
42  
43    public void setSibling(MySibling sibling) {
44      this.sibling = sibling;
45    }
46  
47    public Set getNonInverseChildren() {
48      return nonInverseChildren;
49    }
50  
51    public void setNonInverseChildren(Set nonInverseChildren) {
52      this.nonInverseChildren = nonInverseChildren;
53    }
54  
55    public Set getInverseChildren() {
56      return inverseChildren;
57    }
58  
59    public void setInverseChildren(Set inverseChildren) {
60      this.inverseChildren = inverseChildren;
61    }
62  }