Package com.impetus.kundera.polyglot.entities

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


    @Test
    public void testBiOneToOne() throws NoSuchFieldException, SecurityException, IllegalArgumentException,
            IllegalAccessException
    {
        AddressB11FK address = new AddressB11FK();
        address.setAddressId("addr1");
        address.setStreet("street");

        PersonB11FK p1 = new PersonB11FK();
        p1.setPersonName("vivek");
        p1.setPersonId("1");
        p1.setAddress(address);
View Full Code Here


    {
        PersonB11FK person = new PersonB11FK();
        person.setPersonId("bionetoonefk_1");
        person.setPersonName("Amresh");

        AddressB11FK address = new AddressB11FK();
        address.setAddressId("bionetoonefk_a");
        address.setStreet("123, New street");
        person.setAddress(address);
        address.setPerson(person);

        dao.insert(person);
    }
View Full Code Here

    {
        Assert.assertNotNull(p);
        Assert.assertEquals("bionetoonefk_1", p.getPersonId());
        Assert.assertEquals("Amresh", p.getPersonName());

        AddressB11FK address = p.getAddress();      
        assertAddress(address);
    }
View Full Code Here

    private void assertPersonnelAfterUpdate(PersonB11FK pAfterMerge)
    {
        Assert.assertNotNull(pAfterMerge);
        Assert.assertEquals("Saurabh", pAfterMerge.getPersonName());
        AddressB11FK addressAfterMerge = pAfterMerge.getAddress();
        Assert.assertNotNull(addressAfterMerge);
        Assert.assertEquals("Brand New Street", addressAfterMerge.getStreet());

        PersonB11FK pp = addressAfterMerge.getPerson();
        Assert.assertNotNull(pp);
        Assert.assertEquals("bionetoonefk_1", pp.getPersonId());
        Assert.assertEquals("Saurabh", pp.getPersonName());
    }
View Full Code Here

TOP

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

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.