Package org.dayatang.persistence.test.domain

Examples of org.dayatang.persistence.test.domain.Dictionary


    }

    //@Test
    public void testAlias() {
        List<Dictionary> results = repository.find(instance.eq("category.name", education));
        Dictionary graduate = Dictionary.get(4L);
        assertTrue(results.contains(graduate));
        Dictionary doctor = Dictionary.get(46L);
        assertFalse(results.contains(doctor));
    }
View Full Code Here


        return category;
    }

    private Dictionary createDictionary(String code, String text, DictionaryCategory category, int sortOrder,
            String parentCode) {
        Dictionary dictionary = new Dictionary(code, text, category);
        dictionary.setSortOrder(sortOrder);
        dictionary.setParentCode(parentCode);
        entityManager.persist(dictionary);
        repository.flush();
        return dictionary;
    }
View Full Code Here

TOP

Related Classes of org.dayatang.persistence.test.domain.Dictionary

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.