Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Query Method extract JPQL from NamedQuery [DATAJPA-247] #658

Closed
spring-projects-issues opened this issue Aug 17, 2012 · 3 comments
Closed
Assignees
Labels
in: core Issues in core support status: invalid An issue that we don't feel is valid

Comments

@spring-projects-issues
Copy link

spring-projects-issues commented Aug 17, 2012

Mayko Oliveira opened DATAJPA-247 and commented

I'm trying create a query method for get all bookmarks from user in my BookmarkRepository:

Page<Bookmark> findByUser(User user, Pageable pageable); 

throws this error:

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'bookmarkRepository': FactoryBean threw exception on object creation; nested exception is org.springframework.data.repository.query.QueryCreationException: Could not create query for public abstract org.springframework.data.domain.Page br.com.webbook.repositories.BookmarkRepository.findByUser(br.com.webbook.domain.User,org.springframework.data.domain.Pageable)! Reason: Your persistence provider does not support extracting the JPQL query from a named query thus you can't use Pageable inside your query method. Make sure you have a JpaDialect configured at your EntityManagerFactoryBean as this affects discovering the concrete persistence provider.

No further details from DATAJPA-247

@spring-projects-issues
Copy link
Author

spring-projects-issues commented Aug 17, 2012

Mayko Oliveira commented

Sorry, I post this in wrong place, my mistake

@spring-projects-issues
Copy link
Author

spring-projects-issues commented Aug 20, 2012

Oliver Drotbohm commented

So what's the state of this one? Invalid?

@spring-projects-issues
Copy link
Author

spring-projects-issues commented Aug 21, 2012

Mayko Oliveira commented

yes!invalid. Thanks

@spring-projects-issues spring-projects-issues added status: invalid An issue that we don't feel is valid in: core Issues in core support labels Dec 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: core Issues in core support status: invalid An issue that we don't feel is valid
Projects
None yet
Development

No branches or pull requests

2 participants