JPA 2.0 @OrderColumn annotation in Hibernate 3.5
Posted
by peperg
on Stack Overflow
See other posts from Stack Overflow
or by peperg
Published on 2010-06-02T08:49:44Z
Indexed on
2010/06/02
8:54 UTC
Read the original article
Hit count: 273
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.
© Stack Overflow or respective owner