Package com.impetus.kundera.polyglot.entities

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


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

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


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

    }

    @Override
    protected void findAddressByIdColumn()
    {
        AddressU11FK a = (AddressU11FK) dao.findAddressByIdColumn(AddressU11FK.class, "unionetoonefk_a");
        assertAddressBeforeUpdate(a);
    }
View Full Code Here

        try
        {
            PersonU11FK p = (PersonU11FK) dao.findPerson(PersonU11FK.class, "unionetoonefk_1");
            Assert.assertNotNull(p);
            p.setPersonName("Saurabh");
            AddressU11FK address = p.getAddress();
            address.setStreet("Brand New Street");
            p.setAddress(address);
            dao.merge(p);

            PersonU11FK pAfterMerge = (PersonU11FK) dao.findPerson(PersonU11FK.class,
                    "unionetoonefk_1");
View Full Code Here

     */
    private void assertPersonAfterUpdate(PersonU11FK pAfterMerge)
    {
        Assert.assertNotNull(pAfterMerge);
        Assert.assertEquals("Saurabh", pAfterMerge.getPersonName());
        AddressU11FK addressAfterMerge = pAfterMerge.getAddress();
        Assert.assertNotNull(addressAfterMerge);
        Assert.assertEquals("Brand New Street", addressAfterMerge.getStreet());
    }
View Full Code Here

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

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

TOP

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

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.