开发者

What is the difference between one to one and many to one mapping in hibernate?

开发者 https://www.devze.com 2022-12-18 19:11 出处:网络
What is the difference between one to one 开发者_JS百科and many to one mapping in hibernate?to go along with the general definition...

What is the difference between one to one 开发者_JS百科and many to one mapping in hibernate?


to go along with the general definition...

In a relational database structure, one to one mapping would refer to one row (or tuple) in a database pointing to exactly one other row in a database, linked by some mutual column. (most of the time a key of some sort)

In one to many, a column would hold the value that would relate to many rows in another table.

0

精彩评论

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