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#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...