#spring repository
1 messages · Page 1 of 1 (latest)
<@&1004656351647117403> please have a look, thanks.
Here is an AI assisted attempt to answer your question 🤖. Maybe it helps! In any case, a human is on the way 👍. To continue talking to the AI, you can use </chatgpt:1108714622413963314>.
te a custom repository interface with separate methods for querying, or should I just rely on the methods provided by CrudRepository?
It ultimately depends on the specific requirements of your application. If the standard CRUD operations provided by CrudRepository are sufficient for your needs, then there is no need to create a custom repository interface. However, if you require more complex querying capabilities or need to define custom methods for your domain class, then creating a custom repository interface may be beneficial.
Creating a custom repository interface allows you to define additional methods that are specific to your domain class and can provide more flexibility in terms of querying and data manipulation. This can help improve code organization and maintainability in the long run.
Overall, it comes down to the specific use case of your application. If you find yourself needing more advanced querying capabilities or have unique requirements that cannot be met by CrudRepository alone, then creating a custom repository interface may be the better option. Otherwise, sticking with CrudRepository should suffice for basic CRUD operations.
What do you consider your domain class?