开发者

What is difference between bag vs idbag in hibernate?

开发者 https://www.devze.com 2023-03-27 21:40 出处:网络
I have two entites i.开发者_StackOverflowe.employee information and transfer information maintains upto till date.So In those sceniores which can i choose bag or idbag?Read about Hibernate collection

I have two entites i.开发者_StackOverflowe.employee information and transfer information maintains upto till date.So In those sceniores which can i choose bag or idbag?


Read about Hibernate collection performance to understand the difference.


An idbag lets you add a surrogate generated column to your many2many table

You have to add the generator in your definition, and also make the other side of the many2many relationship the "inverse"

0

精彩评论

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