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.
精彩评论