~raginggoblin/infolog/infolog

« back to all changes in this revision

Viewing changes to InfologServer/lib/hibernate-annotations-3.4.0.GA/test/org/hibernate/test/annotations/cid/AId.java

  • Committer: Raging Goblin
  • Date: 2013-11-16 16:51:32 UTC
  • Revision ID: raging_goblin-20131116165132-weujnptzc88uy4ah
Mavenized the project, now using shared project InfologSync

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
//$Id: AId.java 14736 2008-06-04 14:23:42Z hardy.ferentschik $
2
 
package org.hibernate.test.annotations.cid;
3
 
 
4
 
import java.io.Serializable;
5
 
import javax.persistence.Embeddable;
6
 
import javax.persistence.JoinColumn;
7
 
import javax.persistence.OneToOne;
8
 
 
9
 
 
10
 
/**
11
 
 * @author Artur Legan
12
 
 */
13
 
@Embeddable
14
 
public class AId implements Serializable {
15
 
 
16
 
        @OneToOne
17
 
        @JoinColumn( name = "bid" )
18
 
        private B b;
19
 
 
20
 
        @OneToOne
21
 
        @JoinColumn( name = "cid" )
22
 
        private C c;
23
 
 
24
 
 
25
 
        public B getB() {
26
 
                return b;
27
 
        }
28
 
 
29
 
        public void setB(B b) {
30
 
                this.b = b;
31
 
        }
32
 
 
33
 
        public C getC() {
34
 
                return c;
35
 
        }
36
 
 
37
 
        public void setC(C c) {
38
 
                this.c = c;
39
 
        }
40
 
}