开发者

Hibernate one to many with annotations

Hi guy's i'm very new to hibernate and i have to use annotations also.I have two POJO classes one is having the fields id1,description开发者_如何学编程 in which id is the primary key .I have another table whose fields are id,id1(foreign key),control,value. I have to design a foreign key relationship between these two having one-to many relationship.Can anybody help me.

Please help how to create a relationships between these two classes.

Thank you, Anil


Try to copy this It shows exactly what you want, however there should be plenty of examples on stackoverflow too; just try to use the "search"

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜