Problem w Repository Spring

idk mb problems w pom.xml but my repository just havent basics methods like save and other please help thx
10 Replies
JavaBot
JavaBot7mo ago
This post has been reserved for your question.
Hey @40г белка! Please use /close or the Close Post button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.
Peter Rader
Peter Rader7mo ago
What method are you looking for?
40г белка
40г белкаOP7mo ago
method save in this one Repository
Peter Rader
Peter Rader7mo ago
Ah ok. have you ever heard of the concept of inheritance?
40г белка
40г белкаOP7mo ago
no
Peter Rader
Peter Rader7mo ago
As all children inherit the assets of their parents in the real-life (rl), your type "SensorRepository" inherits all methods that are declared in the JpaRepository. If you inspect the class JpaRepository (or their parents accordingly) you will find your basic save method.
40г белка
40г белкаOP7mo ago
No description
40г белка
40г белкаOP7mo ago
i already tried use save by JpaRepository but i just havent any basic methods there
Peter Rader
Peter Rader7mo ago
The method is there! Do not trust subsequent error-messages, they are a result of an already confused compiler. Solve the first error first until the misleading error-message dissapear.
JavaBot
JavaBot7mo ago
Post Closed
This post has been closed by <@789513154366799924>.
Want results from more Discord servers?
Add your server