Package org.infinispan.persistence.jpa.entity

Examples of org.infinispan.persistence.jpa.entity.Person


      HashSet<String> nickNames = new HashSet<String>();
      nickNames.add("nick1");
      nickNames.add("nick2");

      Person person = new Person();
      person.setId(key);
      person.setName("test person");

      person.setNickNames(nickNames);
      person.setAddress(adr);
      person.setSecondaryAdresses(secAdrs);

      return new TestObject(person.getId(), person);
   }
View Full Code Here


      Address secAdr2 = new Address();
      secAdr2.setCity("Kralovo Pole");
      secAdr2.setStreet("Purkynova 97a");
      secAdr2.setZipCode(54321);

      Person person = new Person();
      person.setId(key);
      person.setName("test person");
      person.setNickNames(Sets.newSet("nick1", "nick2"));
      person.setAddress(adr);
      person.setSecondaryAdresses(Sets.newSet(secAdr1, secAdr2));

      return new TestObject(person.getId(), person);
   }
View Full Code Here

TOP

Related Classes of org.infinispan.persistence.jpa.entity.Person

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.