public interface ItemRepository extends JpaRepository<Item, Integer> {
   List<Item> findByNameAndDescriptionIsNullOrDescription(String name, String desc); 
 }
In the native Query, the where condition of findByNameAndDescriptionIsNullOrDescription is translated to 
where item0_.NAME=? and (item0_.DESC is null) or item0_.DESC=? 
I need to have where item0_.NAME=? and (item0_.DESC is null or item0_.DESC=?)
I am using the following
- spring-data-commons-1.6.3.RELEASE.jar 
- spring-data-jpa-1.4.3.RELEASE.jar 
- (i)hibernate-entitymanager-4.2.14.SP1-redhat-1.jar, (ii) hibernate-jpa-2.0-api-1.0.1.Final-redhat-2.jar offered by JBOSS EAP 6.3 
 
     
     
     
    