OrderColumn « Map « JPA Q&A





1. JPA 2.0 @OrderColumn annotation in Hibernate 3.5    stackoverflow.com

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 ...

2. problem with @OrderColumn    stackoverflow.com

here's my problem, @OrderColumn I use a list, the list is comprised of a compound primary key is a field that also I do the sorting of the list. the problem is: if I ...

3. @OrderColumn    forum.hibernate.org

Newbie Joined: Wed Jun 16, 2010 10:47 am Posts: 1 I have some trouble with the jpa 2 annotation @OrderColumn. While understanding jpa2 and hibernate docs http://docs.jboss.org/hibernate/stable/annotations/reference/en/html_single/ @OrderColumn will create a column in the "child" table for ordering lists....... I have an example: Code: @Entity @Table(name = "TEMPLATE_QUESTIONAIRE") public class TemplateQuestionaire implements Serializable { private static final long ...