开发者

Hibernate one to many with annotations

开发者 https://www.devze.com 2023-03-09 18:36 出处:网络
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

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

精彩评论

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