From 6ed1303349dec77285a0bbe8c23b7dea2d84190e Mon Sep 17 00:00:00 2001 From: Vlad Mihalcea Date: Wed, 5 Jul 2017 14:25:13 +0300 Subject: [PATCH] HHH-11526 - Documentation for custom collection types --- .../java/org/hibernate/userguide/collections/QueueTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/documentation/src/test/java/org/hibernate/userguide/collections/QueueTest.java b/documentation/src/test/java/org/hibernate/userguide/collections/QueueTest.java index 72f909f402..35bd6a611e 100644 --- a/documentation/src/test/java/org/hibernate/userguide/collections/QueueTest.java +++ b/documentation/src/test/java/org/hibernate/userguide/collections/QueueTest.java @@ -77,7 +77,7 @@ public class QueueTest extends BaseEntityManagerFunctionalTestCase { @CollectionType( type = "org.hibernate.userguide.collections.type.QueueType") private Collection phones = new LinkedList<>(); - //Getters and setters are omitted for brevity + //Constructors are omitted for brevity //end::collections-custom-collection-mapping-example[] @@ -88,10 +88,10 @@ public class QueueTest extends BaseEntityManagerFunctionalTestCase { this.id = id; } + //tag::collections-custom-collection-mapping-example[] public Queue getPhones() { return (Queue) phones; } - //tag::collections-custom-collection-mapping-example[] } @Entity(name = "Phone") @@ -131,6 +131,7 @@ public class QueueTest extends BaseEntityManagerFunctionalTestCase { return number; } + //tag::collections-custom-collection-mapping-example[] @Override public int compareTo(Phone o) { return number.compareTo( o.getNumber() ); @@ -152,7 +153,6 @@ public class QueueTest extends BaseEntityManagerFunctionalTestCase { public int hashCode() { return Objects.hash( number ); } - //tag::collections-custom-collection-mapping-example[] } //end::collections-custom-collection-mapping-example[] }