Examples of PersonnelBi1ToMInt


Examples of com.impetus.kundera.tests.crossdatastore.useraddress.datatype.entities.PersonnelBi1ToMInt

    }

    @Override
    protected void insert()
    {
        PersonnelBi1ToMInt personnel = new PersonnelBi1ToMInt();
        personnel.setPersonId(12345);
        personnel.setPersonName("Amresh");

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

        HabitatBi1ToMDouble address2 = new HabitatBi1ToMDouble();
        address2.setAddressId(12346.1234);
        address2.setStreet("BBBBBBBBBBB");

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

Examples of com.impetus.kundera.tests.crossdatastore.useraddress.datatype.entities.PersonnelBi1ToMInt

    @Override
    protected void find()
    {
        // Find Person
        PersonnelBi1ToMInt p = (PersonnelBi1ToMInt) dao.findPerson(PersonnelBi1ToMInt.class, 12345);
        assertPerson(p);

    }
View Full Code Here

Examples of com.impetus.kundera.tests.crossdatastore.useraddress.datatype.entities.PersonnelBi1ToMInt

    }

    @Override
    protected void findPersonByIdColumn()
    {
        PersonnelBi1ToMInt p = (PersonnelBi1ToMInt) dao.findPersonByIdColumn(PersonnelBi1ToMInt.class, 12345);
        assertPerson(p);
    }
View Full Code Here

Examples of com.impetus.kundera.tests.crossdatastore.useraddress.datatype.entities.PersonnelBi1ToMInt

    {
        List<PersonnelBi1ToMInt> persons = dao.findPersonByName(PersonnelBi1ToMInt.class, "Amresh");
        Assert.assertNotNull(persons);
        Assert.assertFalse(persons.isEmpty());
        Assert.assertTrue(persons.size() == 1);
        PersonnelBi1ToMInt person = persons.get(0);
        assertPerson(person);
    }
View Full Code Here

Examples of com.impetus.kundera.tests.crossdatastore.useraddress.datatype.entities.PersonnelBi1ToMInt

    @Override
    protected void update()
    {
        // Find Person
        PersonnelBi1ToMInt p = (PersonnelBi1ToMInt) dao.findPerson(PersonnelBi1ToMInt.class, 12345);
        assertPerson(p);

        p.setPersonName("Saurabh");
        for (HabitatBi1ToMDouble address : p.getAddresses())
        {
            address.setStreet("Brand New Street");
        }
        dao.merge(p);
        PersonnelBi1ToMInt pAfterMerge = (PersonnelBi1ToMInt) dao.findPerson(PersonnelBi1ToMInt.class, 12345);

        assertPersonAfterUpdate(pAfterMerge);
    }
View Full Code Here

Examples of com.impetus.kundera.tests.crossdatastore.useraddress.datatype.entities.PersonnelBi1ToMInt

    @Override
    protected void remove()
    {
        // Find Person
        PersonnelBi1ToMInt p = (PersonnelBi1ToMInt) dao.findPerson(PersonnelBi1ToMInt.class, 12345);
        assertPersonAfterUpdate(p);

        dao.remove(12345, PersonnelBi1ToMInt.class);
        PersonnelBi1ToMInt pAfterRemoval = (PersonnelBi1ToMInt) dao.findPerson(PersonnelBi1ToMInt.class, 12345);
        Assert.assertNull(pAfterRemoval);
    }
View Full Code Here

Examples of com.impetus.kundera.tests.crossdatastore.useraddress.datatype.entities.PersonnelBi1ToMInt

        Assert.assertEquals(2, adds.size());

        for (HabitatBi1ToMDouble address : adds)
        {
            Assert.assertNotNull(address);
            PersonnelBi1ToMInt person = address.getPerson();
            Assert.assertNotNull(person);
            Assert.assertEquals(p.getPersonId(), person.getPersonId());
            Assert.assertEquals(p.getPersonName(), person.getPersonName());
            Assert.assertNotNull(person.getAddresses());
            Assert.assertFalse(person.getAddresses().isEmpty());
            Assert.assertEquals(2, person.getAddresses().size());
        }
    }
View Full Code Here

Examples of com.impetus.kundera.tests.crossdatastore.useraddress.datatype.entities.PersonnelBi1ToMInt

        for (HabitatBi1ToMDouble address : adds)
        {
            Assert.assertNotNull(address);
            Assert.assertEquals("Brand New Street", address.getStreet());
            PersonnelBi1ToMInt person = address.getPerson();
            Assert.assertNotNull(person);
            Assert.assertEquals(p.getPersonId(), person.getPersonId());
            Assert.assertEquals(p.getPersonName(), person.getPersonName());
            Assert.assertNotNull(person.getAddresses());
            Assert.assertFalse(person.getAddresses().isEmpty());
            Assert.assertEquals(2, person.getAddresses().size());
        }
    }
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.