public void setVersion(int version) {
this.version = version;
}
@Column(name = "TEL_TYPE")
public String getTelType() {
return this.telType;
}
public void setTelType(String telType) {
this.telType = telType;
}
@Column(name = "TEL_NUMBER")
public String getTelNumber() {
return this.telNumber;
}
public void setTelNumber(String telNumber) {
this.telNumber = telNumber;
}
}
There's nothing new for this class. Listing 9-7 shows the Hobby class.
Listing 9-7. The Hobby Class
package com.apress.prospring3.ch9.domain;
// Import statements omitted
@Entity
@Table(name = "hobby")
public class Hobby implements Serializable {
private String hobbyId;
@Id
@Column(name = "HOBBY_ID")
public String getHobbyId() {
return this.hobbyId;
}
public void setHobbyId(String hobbyId) {
this.hobbyId = hobbyId;
}
public String toString() {
return "Hobby :" + getHobbyId();
}
}
Again, there's nothing new for this mapping. Let's proceed to see how we model the associations
between the Contact and ContactTelDetail classes.
Search WWH :
Custom Search
Previous Page
Spring Framework 3 Topic Index
Next Page
Spring Framework 3 Bookmarks
Home