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
⌛
This post has been reserved for your question.
Hey @40г белка! Please useTIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here./close
or theClose 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.
What method are you looking for?
method save in this one Repository
Ah ok. have you ever heard of the concept of inheritance?
no
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.
i already tried use save by JpaRepository but i just havent any basic methods there
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.
Post Closed
This post has been closed by <@789513154366799924>.