[jboss-user] [EJB 3.0] - Lazy fetching
aslocal
do-not-reply at jboss.com
Fri Dec 22 02:42:35 EST 2006
Hello. I'm trying to map a column in a table to another column in a different table. county_id is the column in the my current object and I'm trying to match it to tinyid which is the column in the other object. What am I doing wrong?
Product Class
County county;
@OneToOne(fetch=FetchType.LAZY, cascade={CascadeType.ALL})
@JoinColumn(name="county_id", referencedColumnName="tinyid")
public County getCounty() {
return county;
}
public void setCounty(County county) {
this.county = county;
}
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3995798#3995798
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3995798
More information about the jboss-user
mailing list