Package com.impetus.kundera.polyglot.entities

Examples of com.impetus.kundera.polyglot.entities.AddressU1M


    @Test
    public void testOneToMany() throws NoSuchFieldException, SecurityException, IllegalArgumentException,
            IllegalAccessException
    {
        AddressU1M address1 = new AddressU1M();
        address1.setAddressId("addr1");
        address1.setStreet("street");

        AddressU1M address2 = new AddressU1M();
        address2.setAddressId("addr1");
        address2.setStreet("street");

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


        PersonU1M personnel = new PersonU1M();
        personnel.setPersonId("unionetomany_1");
        personnel.setPersonName("Amresh");

        Set<AddressU1M> addresses = new HashSet<AddressU1M>();
        AddressU1M address1 = new AddressU1M();
        address1.setAddressId("unionetomany_a");
        address1.setStreet("AAAAAAAAAAAAA");

        AddressU1M address2 = new AddressU1M();
        address2.setAddressId("unionetomany_b");
        address2.setStreet("BBBBBBBBBBB");

        addresses.add(address1);
        addresses.add(address2);
        personnel.setAddresses(addresses);
        dao.insert(personnel);
View Full Code Here

    }

    @Override
    protected void findAddressByIdColumn()
    {
        AddressU1M a = (AddressU1M) dao.findAddressByIdColumn(AddressU1M.class, "unionetomany_a");
        Assert.assertNotNull(a);
        Assert.assertEquals("unionetomany_a", a.getAddressId());
        Assert.assertEquals("AAAAAAAAAAAAA", a.getStreet());
    }
View Full Code Here

        List<AddressU1M> adds = dao.findAddressByStreet(AddressU1M.class, "AAAAAAAAAAAAA");
        Assert.assertNotNull(adds);
        Assert.assertFalse(adds.isEmpty());
        Assert.assertTrue(adds.size() == 1);

        AddressU1M a = adds.get(0);
        Assert.assertNotNull(a);
        Assert.assertEquals("unionetomany_a", a.getAddressId());
        Assert.assertEquals("AAAAAAAAAAAAA", a.getStreet());
    }
View Full Code Here

TOP

Related Classes of com.impetus.kundera.polyglot.entities.AddressU1M

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.