Relative Content

Tag Archive for spring-data-jpaspring-data

Limit number of returned records on OneToMany in Spring-Data

I want to implement a recentOrders function in my spring-data app. So for a given customer I want to retrieve the last 5 orders the customer has everytime. But have a separate field that is the entire orders list that I can fetch as needed.

Limit number of returned records on OneToMany in Spring-Data

I want to implement a recentOrders function in my spring-data app. So for a given customer I want to retrieve the last 5 orders the customer has everytime. But have a separate field that is the entire orders list that I can fetch as needed.

Execution of SQL Script statement

I hope you are fine and doing well. At this time I’m developing my RESTful API web service application. I use h2 console temporary db storage and works well.