开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜