我需要知道如何使用行李标签以及它的用途是什么?
最佳答案
用于集合映射
If your table does not have an index column, and you still wish to use List as the property type, you can map the property as a Hibernate < bag>. A bag does not retain its order when it is retrieved from the database, but it can be optionally sorted or ordered.
http://docs.jboss.org/hibernate/core/3.3/reference/en/html/collections.html
关于java - Hibernate中的bag标签有什么用?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3306833/