Leave a Reply

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

Notify of
avatar

Palash Khatri
Guest
Palash Khatri
12 days 5 hours ago

Wonderful explanation sir

Obul Pathi
Guest
Obul Pathi
26 days 11 hours ago

can anyone please tell me what is equalent lambda expression for method reference topic::add in forEach loop.public List<Topics> getAllTopics() { List<Topics> topic = new ArrayList<Topics>(); topicsRepository.findAll().forEach(topic::add); return topic; }

abhishek bhaiya
Guest
abhishek bhaiya
1 month 18 hours ago

Hi Kaushik, it would be more helpful if you could just put these codes some where on your website.

Fedel Gabrail
Guest
Fedel Gabrail
1 month 5 days ago

I have followed every step in this video and when i POST something to the list and use "GET" it still returns an empty list. But when i search for it with /topics/example it exists using the old methods. Any idea what can be wrong? I have @EnableJPRepositories and @EntityScan in the main class but it still doesn't work. Iam using new versions of the dependencys maybe the problem lies in there? My files that i copied over are in a sub package of the main package where my main class lies.

Fedel Gabrail
Guest
Fedel Gabrail
1 month 5 days ago

Nvm i managed to solve it by removing the old list initialization with the old elemtns and just create an empty list instead. Apparently it was overlaping the new methods

Vineeth A Nair
Guest
Vineeth A Nair
1 month 5 days ago

I am getting the below error or response from server{ "timestamp": 1505340182841, "status": 500, "error": "Internal Server Error", "exception": "org.springframework.dao.InvalidDataAccessResourceUsageException", "message": "could not prepare statement; SQL [select topic0_.id as id1_0_0_, topic0_.desc as desc2_0_0_, topic0_.name as name3_0_0_ from topic topic0_ where topic0_.id=?]; nested exception is org.hibernate.exception.SQLGrammarException: could not prepare statement", "path": "/topics/java"}I am using 1.4.2.RELEASE. Please help

Firas Jallad
Guest
Firas Jallad
24 days 19 hours ago

may be you forgot to add the following annotation @Autowired

Addam Caue
Guest
Addam Caue
1 month 7 days ago

I love how im using the same springboot dependencies version he and all other people are using and yet, i'm the only one having many problems arriving from the class with the main method…"so little you have to do to make things work with spring"….yeah, right.Nicely explained tutorial though. Only wished this framework wouldn't generate so many weird errors that beginners dont understand.

Erwin Daniel Arancibia
Guest
Erwin Daniel Arancibia
1 month 7 days ago

I`ve set the ID field as int, the rest of the code is the same, but the update and delete methods are not working, I don`t get any error but just doens`t do anything

Erwin Daniel Arancibia
Guest
Erwin Daniel Arancibia
1 month 7 days ago

thanks, but still not working

Don Digidon
Guest
Don Digidon
1 month 7 days ago

Use Integer instead of int

Zheyuan Fu
Guest
Zheyuan Fu
1 month 13 days ago

Hi, very nice tutorial and thank you for your sharing.Would you mind explaining the difference between your using apache derby database and using of h2database in official guide? The only difference I saw is a couple of dependencies added to pom file. Am I right? Thank again.

Ed Leonard
Guest
Ed Leonard
1 month 18 days ago

If using Derby you get a ERROR 50919 in the App log and a cannot prepare SQL statement error elsewhere when poking around, I had this also. I experienced the same problem as stackoverflow.com/questions/43244109/spring-boot-error-using-apache-derby-as-embedded-database for which I don't see any solution as yet. Given the text of the SO article (s)he's following this tutorial too.Workaround was to use H2 as the DB (you will find this hidden in the comments) and it works for me. @Java Brains – have you come across this yourself?

Janak Soni
Guest
Janak Soni
1 month 18 days ago

for updateTopic method with topicRepository, do we still need to keep String id as argument?

1 2 3 6
wpDiscuz