Update of /cvsroot/hibernate/HibernateExt/metadata/src/test/org/hibernate/test/annotations/various
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15783/metadata/src/test/org/hibernate/test/annotations/various
Modified Files:
Vehicule.java
Log Message:
ANN-241
Index: Vehicule.java
===================================================================
RCS file: /cvsroot/hibernate/HibernateExt/metadata/src/test/org/hibernate/test/annotations/various/Vehicule.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- Vehicule.java 4 Jan 2006 00:43:48 -0000 1.5
+++ Vehicule.java 17 Feb 2006 18:47:18 -0000 1.6
@@ -29,8 +29,13 @@
private String registrationNumber;
@ManyToOne(optional = false)
@JoinColumn(name="Conductor_fk")
- @Index( name="thirdone", columnNames={"Conductor_fk"} )
+ @Index( name="thirdone" )
private Conductor currentConductor;
+ @Index(name="year_idx")
+ private Integer year;
+ @ManyToOne(optional = true)
+ @Index( name="forthone" )
+ private Conductor previousConductor;
public String getId() {
return id;
@@ -55,4 +60,20 @@
public void setCurrentConductor(Conductor currentConductor) {
this.currentConductor = currentConductor;
}
+
+ public Integer getYear() {
+ return year;
+ }
+
+ public void setYear(Integer year) {
+ this.year = year;
+ }
+
+ public Conductor getPreviousConductor() {
+ return previousConductor;
+ }
+
+ public void setPreviousConductor(Conductor previousConductor) {
+ this.previousConductor = previousConductor;
+ }
}
|