@@ -0,0 +1,1653 @@
+/**********************************************************************%0ACopyright (c) 2015 Andy Jefferson and others. All rights reserved.%0ALicensed under the Apache License, Version 2.0 (the %22License%22);%0Ayou may not use this file except in compliance with the License.%0AYou may obtain a copy of the License at%0A%0A    http://www.apache.org/licenses/LICENSE-2.0%0A%0AUnless required by applicable law or agreed to in writing, software%0Adistributed under the License is distributed on an %22AS IS%22 BASIS,%0AWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0ASee the License for the specific language governing permissions and%0Alimitations under the License.%0A%0AContributors:%0A     ...%0A **********************************************************************/%0Apackage org.datanucleus.samples;%0A%0Aimport java.util.HashSet;%0Aimport java.util.Set;%0A%0Aimport javax.jdo.annotations.Join;%0Aimport javax.jdo.annotations.PersistenceCapable;%0Aimport javax.jdo.annotations.PrimaryKey;%0A%0A/**%0A * Example of a class with a String collection field.%0A */%0A@PersistenceCapable(table=%22CLASSWITHSTRINGCOLL%22)%0Apublic class ClassWithStringCollection%0A%7B%0A    @PrimaryKey%0A    long id;%0A%0A    String name;%0A%0A    @Join(table=%22CLASSWITHSTRINGCOLL_STRINGS%22)%0A    Set%3CString%3E strings = new HashSet%3CString%3E();%0A%0A    public ClassWithStringCollection(long id, String name)%0A    %7B%0A        this.id = id;%0A        this.name = name;%0A    %7D%0A%0A    public long getId()%0A    %7B%0A        return id;%0A    %7D%0A%0A    public String getName()%0A    %7B%0A        return name;%0A    %7D%0A    public void setName(String name)%0A    %7B%0A        this.name = name;%0A    %7D%0A%0A    public Set%3CString%3E getStrings()%0A    %7B%0A        return strings;%0A    %7D%0A%7D%0A

Test for Set<String>