Impetus / kundera

A JPA 2.1 compliant Polyglot Object-Datastore Mapping Library for NoSQL Datastores.Please subscribe to:

Home Page:http://groups.google.com/group/kundera-discuss/subscribe

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Do kundera work with jpa repository as shown below

mayankqait opened this issue · comments

hi team ,can i run query like this
@repository
public interface EmpRepository extends JpaRepository<Employee,Integer>{

@Query(value="SELECT e FROM Employee e WHERE e.name = :name")
public List<Employee> findByName(@Param("name") String name);

}

As i am getting this error 👎 using postman

could not prepare statement; SQL [select employee0_.id as id1_0_, employee0_.dept as dept2_0_, employee0_.mobile as mobile3_0_, employee0_.name as name4_0_ from employeecombo@cassandra_pu.employee employee0_ where employee0_.name=?]; nested exception is org.hibernate.exception.SQLGrammarException: could not prepare statement

Hi @mayankqait,

JpaRepository is a part of Spring Data JPA. It will not work with Kundera.

-Dev

Thank u