Package com.impetus.client.oraclenosql.entities

Examples of com.impetus.client.oraclenosql.entities.AddressOracleNoSqlOTM


        emf.close();
    }

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

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

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


        Assert.assertNull(foundPerson);
    }

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

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

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

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

        em.persist(person);

        AddressOracleNoSqlOTM address1a = new AddressOracleNoSqlOTM();
        address1a.setAddressId("a1");
        address1a.setStreet("sector 11a");

        AddressOracleNoSqlOTM address2b = new AddressOracleNoSqlOTM();
        address2b.setAddressId("b1");
        address2b.setStreet("sector 12b");

        Set<AddressOracleNoSqlOTM> addresses1 = new HashSet<AddressOracleNoSqlOTM>();
        addresses1.add(address1a);
        addresses1.add(address2b);
View Full Code Here

TOP

Related Classes of com.impetus.client.oraclenosql.entities.AddressOracleNoSqlOTM

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.