package org.crygier.graphql.model.collections;

import org.crygier.graphql.annotation.SchemaDocumentation;

import javax.persistence.ElementCollection;
import javax.persistence.Entity;
import java.util.ArrayList;
import java.util.List;

@Entity
public class CollectionTest {

    //testing that the Schema Builder does not break
    //when building collection of non-enum objects
    
    @SchemaDocumentation("A List of Strings")
    @ElementCollection(targetClass=String.class)
    List<String> codas = new ArrayList<String>();
}

@@ -41,16 +41,55 @@
 tions;%0A%0A
+import groovy.transform.CompileStatic;%0A
 import o
@@ -139,16 +139,16 @@
 tation;%0A
-
 %0Aimport 
@@ -217,16 +217,45 @@
 Entity;%0A
+import javax.persistence.Id;%0A
 import j
@@ -306,16 +306,31 @@
 @Entity%0A
+@CompileStatic%0A
 public c
@@ -456,20 +456,109 @@
 objects%0A
+%0A
     
+@Id%0A    @SchemaDocumentation(%22Primary Key for the CollectionTest Class%22)%0A    String id;%0A
 %0A    @Sc

Entities need id's