Package info.archinnov.achilles.persistence

Examples of info.archinnov.achilles.persistence.PersistenceManager.nativeQuery()


        final PersistenceManager manager = resource.getPersistenceManager();
        RegularStatement regularStatement = select().countAll().from("system","schema_keyspaces")
                .where(eq("keyspace_name","test_keyspace"));

        //When
        final Map<String,Object> map = manager.nativeQuery(regularStatement).first();

        //Then
        assertThat(map.get("count")).isEqualTo(1L);

    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.