Leave a Reply

254 Comments on "Spring Boot Quick Start 29 – Making Crud Operations with Repository"

Notify of
avatar

LucasofAppalachia
Guest
LucasofAppalachia
4 days 1 hour ago

Excellent tutorial. Looks like they replaced the findOne method with findById though :/

Sebastián Benítez
Guest
Sebastián Benítez
6 days 19 hours ago

For whose have this error:Consider defining a bean named 'entityManagerFactory' in your configuration. Just try to delete the repository folder in maven that should be under $ ~/.m2/repository then go to the root of your project, wherever you have it and run $mvn clean installThen run again your project, and it should work without an issue. Here is the source: github.com/spring-guides/gs-accessing-data-mysql/issues/10

WinwinLS
Guest
WinwinLS
6 days 20 hours ago

If you are using a newer version of Spring Boot, and can't seem to find the "findOne()" method used in the "getTopic(String id)" method, it is because it has been replaced with the "findById()" method. You can use it like this: return topicRepository.findById(id).orElse(null);

Neeraj Balodi
Guest
Neeraj Balodi
6 days 23 hours ago

I am facing below error :-org.hibernate.tool.schema.spi.CommandAcceptanceException: Error executing DDL via JDBC Statement at org.hibernate.tool.schema.internal.exec.GenerationTargetToDatabase.accept(GenerationTargetToDatabase.java:67) ~[hibernate-core-5.2.17.Final.jar:5.2.17.Final]Caused by: java.sql.SQLSyntaxErrorException: Schema 'SA' does not existHow this can be removed, I have added all the dependencies in pom.xml?

Stylemaxz Maxz
Guest
Stylemaxz Maxz
8 days 12 hours ago

I got massage "CrudRepository cannot be applied to (java.lang.String)" in delete function how can I solve it?

Stylemaxz Maxz
Guest
Stylemaxz Maxz
8 days 10 hours ago

Problem is solved by change version spring boot from 2.0.0 to 1.5.12 (Low version)

Nagarjuna Annem
Guest
Nagarjuna Annem
10 days 12 hours ago

Thanks for this great tutorial.When I try the same on my local, I receive the below error with Derby and cannot figure out how to resolve this.2018-05-16 00:11:11.084 WARN 16860 — [ main] o.h.t.s.i.ExceptionHandlerLoggedImpl : GenerationTarget encountered exception accepting command : Error executing DDL via JDBC Statementorg.hibernate.tool.schema.spi.CommandAcceptanceException: Error executing DDL via JDBC Statement at org.springframework.boot.SpringApplication.run(SpringApplication.java:1243) ~[spring-boot-2.0.2.RELEASE.jar:2.0.2.RELEASE] at com.arjun.springbootquickstart.CourseApiDataApplication.main(CourseApiDataApplication.java:10) ~[classes/:na]Caused by: java.sql.SQLSyntaxErrorException: Schema 'SA' does not exist

Girish YT
Guest
Girish YT
15 days 10 hours ago

For those who cant find the findOne() method, check out this link – stackoverflow.com/questions/44101061/missing-crudrepositoryfindone-method

Avinash kumar
Guest
Avinash kumar
15 days 23 hours ago

Getting an error while trying to run the application , required a bean named 'entityManagerFactory' that could not be found.Action:Consider defining a bean named 'entityManagerFactory' in your configuration.Used @EnableJpaRepositories and @ComponentScan but still not working.

Diego A. Escalona N.
Guest
Diego A. Escalona N.
16 days 15 hours ago

I got this error: Caused by: org.apache.derby.iapi.error.StandardException: Supplied locale description 'es_419' is invalid, expecting ln[_CO[_variant]] Does someone know how to fix it?I tried adding this to application.properties:spring.jpa.properties.locale=en_AUbut it doesn't work

Diego A. Escalona N.
Guest
Diego A. Escalona N.
16 days 15 hours ago

To whom may concern, I just added some VM arguments in the Run configuration:-Duser.language=en -Duser.country=AU

HARIKA BANDARU
Guest
HARIKA BANDARU
17 days 14 hours ago

Can anyone help me by following all the steps PUT for updating is not working

1 2 3 15
wpDiscuz