From efb4949a57362fdbcce36030eeeacc0e21c8aaf3 Mon Sep 17 00:00:00 2001 From: Oliver Gierke Date: Mon, 24 Feb 2014 17:59:45 +0100 Subject: [PATCH] DATAREST-250 - Moved to List instead of Set to guarantee stable results. --- .../org/springframework/data/rest/webmvc/jpa/Order.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/jpa/Order.java b/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/jpa/Order.java index 29f6125b0..cf9bbc1f6 100644 --- a/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/jpa/Order.java +++ b/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/jpa/Order.java @@ -15,8 +15,8 @@ */ package org.springframework.data.rest.webmvc.jpa; -import java.util.HashSet; -import java.util.Set; +import java.util.ArrayList; +import java.util.List; import javax.persistence.CascadeType; import javax.persistence.Entity; @@ -39,7 +39,7 @@ public class Order { @ManyToOne(fetch = FetchType.LAZY)// private Person creator; @OneToMany(cascade = CascadeType.ALL, orphanRemoval = true)// - private Set lineItems = new HashSet(); + private List lineItems = new ArrayList(); public Order(Person creator) { this.creator = creator; @@ -60,7 +60,7 @@ public class Order { /** * @return the lineItems */ - public Set getLineItems() { + public List getLineItems() { return lineItems; }