Package org.dayatang.domain

Examples of org.dayatang.domain.EntityRepository


    }

    @Test
    public void testGetIms() {
        String jpql = "select o from Person o join o.ims i where KEY(i) = :imType and i = :im";
        EntityRepository repository = InstanceFactory.getInstance(EntityRepository.class);
        List<Person> persons = repository.createJpqlQuery(jpql)
                .addParameter("imType", ImType.QQ).addParameter("im", "666666").list();
        assertFalse(persons.contains(person1));
        assertTrue(persons.contains(person2));
    }
View Full Code Here

TOP

Related Classes of org.dayatang.domain.EntityRepository

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.