Package com.impetus.kundera.tests.crossdatastore.useraddress.entities

Examples of com.impetus.kundera.tests.crossdatastore.useraddress.entities.PersonnelUni1To1FK


    protected void insert()
    {
        try
        {
            PersonnelUni1To1FK person = new PersonnelUni1To1FK();
            HabitatUni1To1FK address = new HabitatUni1To1FK();
            person.setPersonId("unionetoonefk_1");
            person.setPersonName("Amresh");
            address.setAddressId("unionetoonefk_a");
            address.setStreet("123, New street");
            person.setAddress(address);
            dao.insert(person);
            col.add(person);
            col.add(address);
        }
        catch (Exception e)
View Full Code Here


    protected void find()
    {
        // Find Person
        try
        {
            PersonnelUni1To1FK p = (PersonnelUni1To1FK) dao.findPerson(PersonnelUni1To1FK.class, "unionetoonefk_1");
            assertPersonBeforeUpdate(p);
        }
        catch (Exception e)
        {
           
View Full Code Here

    }

    @Override
    protected void findPersonByIdColumn()
    {
        PersonnelUni1To1FK p = (PersonnelUni1To1FK) dao.findPersonByIdColumn(PersonnelUni1To1FK.class,
                "unionetoonefk_1");
        assertPersonBeforeUpdate(p);
    }
View Full Code Here

    protected void update()
    {
        try
        {
            PersonnelUni1To1FK p = (PersonnelUni1To1FK) dao.findPerson(PersonnelUni1To1FK.class, "unionetoonefk_1");
            Assert.assertNotNull(p);

            // dao.merge(p); //This merge operation should do nothing since
            // nothing has changed

            // p = (PersonnelUni1To1FK) dao.findPerson(PersonnelUni1To1FK.class,
            // "unionetoonefk_1");
            p.setPersonName("Saurabh");
            HabitatUni1To1FK address = p.getAddress();
            address.setStreet("Brand New Street");
            p.setAddress(address);
            dao.merge(p);

            PersonnelUni1To1FK pAfterMerge = (PersonnelUni1To1FK) dao.findPerson(PersonnelUni1To1FK.class,
                    "unionetoonefk_1");
            assertPersonAfterUpdate(pAfterMerge);
        }
        catch (Exception e)
        {
View Full Code Here

    protected void remove()
    {
        try
        {
            PersonnelUni1To1FK p = (PersonnelUni1To1FK) dao.findPerson(PersonnelUni1To1FK.class, "unionetoonefk_1");
            Assert.assertNotNull(p);
            dao.remove("unionetoonefk_1", PersonnelUni1To1FK.class);

            PersonnelUni1To1FK pAfterRemoval = (PersonnelUni1To1FK) dao.findPerson(PersonnelUni1To1FK.class,
                    "unionetoonefk_1");
            Assert.assertNull(pAfterRemoval);
        }
        catch (Exception e)
        {
View Full Code Here

    private void assertPersons(List<PersonnelUni1To1FK> persons)
    {
        Assert.assertNotNull(persons);
        Assert.assertFalse(persons.isEmpty());
        Assert.assertTrue(persons.size() == 1);
        PersonnelUni1To1FK person = persons.get(0);
        assertPersonBeforeUpdate(person);
    }
View Full Code Here

TOP

Related Classes of com.impetus.kundera.tests.crossdatastore.useraddress.entities.PersonnelUni1To1FK

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.