@OrderColumn, @OneToMany & null index column for collection

前端 未结 5 626
梦谈多话
梦谈多话 2020-12-30 09:03

I am trying to create parent child tables where the order is preserved. The example 7.8 from Hibernate documentation shows how to do this:

@Entity
public cl         


        
5条回答
  •  没有蜡笔的小新
    2020-12-30 09:57

    Moin,

    the same problem occurs on hibernate.core 5.1.4 final. Using Set and HashSet on tag @OrderColumn (like Augustin said) fix the problem.

提交回复
热议问题