#Problem w Repository Spring

11 messages · Page 1 of 1 (latest)

livid relic
#

idk mb problems w pom.xml but my repository just havent basics methods like save and other please help thx

timid baneBOT
#

This post has been reserved for your question.

Hey @livid relic! 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.

coarse steeple
#

What method are you looking for?

livid relic
#

method save in this one Repository

coarse steeple
#

Ah ok. have you ever heard of the concept of inheritance?

livid relic
#

no

coarse steeple
#

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.

livid relic
#

i already tried use save by JpaRepository but i just havent any basic methods there

coarse steeple
#

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.