Leave a Reply

17 Comments on "Spring Boot Quick Start 31 – Adding Entity Relationship and Extending Repository"

Notify of
avatar

Sanket Kudalkar
Guest
Sanket Kudalkar
10 days 19 hours ago

Hey Koushik, I think you forgot to mention how to configure other databases. Can you do tutorial for that ?

Scudd Kidd
Guest
Scudd Kidd
1 month 7 days ago

the logic you went with , is convulted , the right take would be making the courses entity a field in the topic entity , isn't ?

MaierasAndrei
Guest
MaierasAndrei
4 days 8 hours ago

The `Topic topic` instance variable in the `Course` class acts like the foreign key from course to topic. So as the annotation `@ManyToOne` says you will have many courses to one topic. Hope it helps

Ashish Poste
Guest
Ashish Poste
19 days 13 hours ago

Even i was thinking on those line.Tpoic should have list of courses.IF we have topic within courses.Topics would be repreated within courses having same topic.Redundannt data…Kosuhik please help …if you have done that with some other concept in mind

Dale Highfill
Guest
Dale Highfill
1 month 23 days ago

Very well organized and progressive learning. Looking forward to reviewing your other playlist.

vvivekkumar07
Guest
vvivekkumar07
1 month 26 days ago
Hi I am using eclipse for this development I have added the new course controllerThe request whatever i make to topic controller is working fine, but when i am requesting the URL that is mapped with the course controller its displaying 404 error. my package structure is as belowcom.vivek.main —> MainClasscom.vivek.main.controller —> TopicController and CourseControllercom.vivek.main.service etci am aware that spring boot scans the main class from the package and consider it as default package so whatever we are adding as new package it should come under the base package that contains the main class.Can anyone please help me whats going… Read more »
Amogh Phadke
Guest
Amogh Phadke
2 months 5 days ago

it's a neat feature to add just method names and forget the implementation part of it. awesome Koushik!!!

Pankaj Upreti
Guest
Pankaj Upreti
2 months 6 days ago

@Koushik.. Thanks for making these videos.Can you pls explain how hibernate comes in picture with spring data .. I read its an abstraction on top of JPA

Minhaz Taher
Guest
Minhaz Taher
2 months 19 days ago

why java is so tough 🙁 🙁

sudheer kethireddy
Guest
sudheer kethireddy
2 months 20 days ago

Hi Kaushik, I am getting below error on startupDescription: Field courseService in com.tutorial.springboot.controller.CourseController required a bean of type 'com.tutorial.springboot.service.CourseService' that could not be found.Action:Consider defining a bean of type 'com.tutorial.springboot.service.CourseService' in your configuration.

sreenivas gundlapalli
Guest
sreenivas gundlapalli
2 months 17 days ago

check whether you annotated the service class with @service or not.

Mambisi Zempare
Guest
Mambisi Zempare
2 months 21 days ago

Please how do i connect to mysql database?

sudheer kethireddy
Guest
sudheer kethireddy
2 months 20 days ago

Add the below prperties to the application.properties filespring.datasource.url=jdbc: you can find more info about it in below url'sdocs.spring.io/spring-boot/docs/current/reference/html/common-application-properties.htmldocs.spring.io/spring-boot/docs/current/reference/html/boot-features-sql.html

Dragon Smith
Guest
Dragon Smith
3 months 2 days ago

jpa is good ,but when we write more complex sql dealing with our tables ,i think we should use mybaits ,so teacher can u make a serias video that introduce how to use mybatis ? probably can make a video that can integrate mybatie and jpa together.

Dragon Smith
Guest
Dragon Smith
3 months 1 day ago

thanks teacher ,that's really helpful

Java Brains
Guest
Java Brains
3 months 2 days ago

JPA also has the ability to accept queries in a SQL-like syntax called JPQL. Check this out: docs.oracle.com/html/E13946_06/ejb3_overview_query.html#ejb3_query_api

wpDiscuz