Package com.mysema.query.jpa.domain

Examples of com.mysema.query.jpa.domain.QAnimal


//    }

    @Test
    public void SubClassToSuper() {
        QCat cat = QCat.cat;
        QAnimal animal = new QAnimal(cat);

        assertEquals(Cat.class, animal.getType());
//        assertEquals(Cat.class.getSimpleName(), animal.getEntityName());
        assertEquals("cat", animal.toString());
    }
View Full Code Here


    }

    @Test
    public void SubClassToSuper2() {
        QCat cat = QCat.cat;
        QAnimal animal = new QAnimal(cat.getMetadata());

        assertEquals(Animal.class, animal.getType());
//        assertEquals(Animal.class.getSimpleName(), animal.getEntityName());
        assertEquals("cat", animal.toString());
    }
View Full Code Here

        assertEquals("cat", animal.toString());
    }

    @Test
    public void SuperClassToSub() {
        QAnimal animal = QAnimal.animal;
        QCat cat = new QCat(animal.getMetadata());

        assertEquals(Cat.class, cat.getType());
//        assertEquals(Cat.class.getSimpleName(), cat.getEntityName());
        assertEquals("animal", cat.toString());
    }
View Full Code Here

TOP

Related Classes of com.mysema.query.jpa.domain.QAnimal

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.