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

How to fetch JPA repository from spring Batch [BATCH-2791] #813

Closed
spring-issuemaster opened this issue Feb 1, 2019 · 1 comment
Closed

How to fetch JPA repository from spring Batch [BATCH-2791] #813

spring-issuemaster opened this issue Feb 1, 2019 · 1 comment

Comments

@spring-issuemaster
Copy link
Collaborator

@spring-issuemaster spring-issuemaster commented Feb 1, 2019

Dayanand Pagam opened BATCH-2791 and commented

Hello Team,

I am using spring batch Itemreader to retrieve data from DB . But to fetch the data I want to use JPA repository instead of querysting.

Please let me know if there is any approach.

Thanks & Regards

Dayanand

9930224746


Affects: 4.1.0

@spring-issuemaster
Copy link
Collaborator Author

@spring-issuemaster spring-issuemaster commented Feb 1, 2019

Mahmoud Ben Hassine commented

This is better asked on SO, but I will answer the question here and then close the ticket.

I want to use JPA repository instead of querysting

You can use the RepositoryItemReader for that. You can find an example here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.