Examples of AddressCouchOTM


Examples of com.impetus.client.couchdb.entities.AddressCouchOTM

        emf.close();
    }

    @Test
    public void testCRUD() {
        AddressCouchOTM address1 = new AddressCouchOTM();
        address1.setAddressId("a");
        address1.setStreet("sector 11");

        AddressCouchOTM address2 = new AddressCouchOTM();
        address2.setAddressId("b");
        address2.setStreet("sector 12");

        Set<AddressCouchOTM> addresses = new HashSet<AddressCouchOTM>();
        addresses.add(address1);
        addresses.add(address2);
View Full Code Here

Examples of com.impetus.client.couchdb.entities.AddressCouchOTM

        Assert.assertNull(foundPerson);
    }

    @Test
    public void testQuery() {
        AddressCouchOTM address1 = new AddressCouchOTM();
        address1.setAddressId("a");
        address1.setStreet("sector 11");

        AddressCouchOTM address2 = new AddressCouchOTM();
        address2.setAddressId("b");
        address2.setStreet("sector 12");

        Set<AddressCouchOTM> addresses = new HashSet<AddressCouchOTM>();
        addresses.add(address1);
        addresses.add(address2);

        PersonCouchOTM person = new PersonCouchOTM();
        person.setPersonId("1");
        person.setPersonName("Kuldeep");
        person.setAddresses(addresses);

        em.persist(person);

        PersonCouchOTM person1 = new PersonCouchOTM();
        person1.setPersonId("2");
        person1.setPersonName("KK");

        address1.setAddressId("a1");
        address1.setStreet("Sector a1");

        address2.setAddressId("a2");
        address2.setStreet("Sector a2");

        AddressCouchOTM address3 = new AddressCouchOTM();
        address3.setAddressId("a3");
        address3.setStreet("Sector a3");

        addresses = new HashSet<AddressCouchOTM>();
        addresses.add(address1);
        addresses.add(address2);
        addresses.add(address3);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.