Hi all
I have made a model class in which I made object of another
model which is basically primary and foreign key relationship
My problem is if I give the name pageType to that object but when it goes to
the database for searching the column it appends _id with the name ie
pageType_id
But in database I have given the name as page_type. Can anybody tell me is
it the limitation of hibernate or a setting which can be changed.
Also @Column(name="page_type ) is not allowed with ManyToOne Relationship
@ManyToOne(fetch=FetchType.LAZY)
public PageType getPageType() {
return pageType;
}
Regards
Anshu