Package com.impetus.client.oraclenosql.entities

Examples of com.impetus.client.oraclenosql.entities.Office


    @Test
    public void executeCRUDTest()
    {

        // Insert records
        persistPerson("1", "person1", 10, new Office(1, "Company1", "Location 1"));
        persistPerson("2", "person2", 20, new Office(2, "Company2", "Location 2"));
        persistPerson("3", "person3", 30, new Office(3, "Company3", "Location 3"));
        persistPerson("4", "person4", 40, new Office(4, "Company4", "Location 4"));

        // Find Records
        clearEm();
        PersonEmbeddedKVStore p11 = findById("1");
        assertNotNull(p11);
View Full Code Here


    @Test
    public void executeJPAQueriesTest()
    {
        // Insert records
        persistPerson("1", "person1", 10, new Office(1, "Company1", "Location 1"));
        persistPerson("2", "person2", 20, new Office(2, "Company2", "Location 2"));
        persistPerson("3", "person3", 30, new Office(3, "Company3", "Location 3"));
        persistPerson("4", "person4", 40, new Office(4, "Company4", "Location 4"));

        // Select query, without where clause
        clearEm();
        String findWithOutWhereClause = "Select p from PersonEmbeddedKVStore p";
        List<PersonEmbeddedKVStore> results = executeSelectQuery(findWithOutWhereClause);
View Full Code Here

TOP

Related Classes of com.impetus.client.oraclenosql.entities.Office

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.