JPA 2.0 @OrderColumn annotation in Hibernate 3.5
- by peperg
I'm trynig to use @OrderColumn annotation with Hibernate 3.5
@OneToMany(mappedBy = "parent",fetch=FetchType.EAGER, cascade=CascadeType.ALL)
@OrderColumn(name = "pos")
private List<Children> childrenCollection;
When retrieving data everyting works fine. But I can't make it to reorded elements in List and save new order to database.