Access the full course here: javabrains.io/courses/spring_bootquickstart
Learn how to implement a relationship mapping using @ManyToOne as well as establish relationship based find-filter method in the JPA repository.
33 Comments on "Spring Boot Quick Start 31 – Adding Entity Relationship and Extending Repository"
i wish youtube would provide a speed x3 button for your videos…Luv you koushik :>
How can I add oracle dependency? I usually copy the oracle jdbc jar in tomcat/lib, but since i don't need setup tomcat by myself, how do I add it? I did not see oracle support in the spring starter project as well.
Please explain how to use other databases MYSQL etc
CourseRepository is an interface and so is CrudRepository so which is the class that implements these interfaces and provides the implementation for custom methods and basic crud methods ?
great buddy, cool trick about that auto implementation from the function name! cheers!
What if I wanted to find by multiple fields? For example, find a user where first name and last name fields are both a given value. Obviously I don't want to just findAllUsers and filter; that requires unnecessary network activity / database interaction.
Hi Koushik,Your tutorial video is awesome,i have query, how to use .yml file using springboot webservices..
Is it required/mandatory to put @Repository annotation on courseRepository for successful autowiring in service? As in Spring 4 we need @Repository annotation its mandatory.
In CodeChannels.com, you can learn to code by watching videos and stay up to date with latest code shows, events and tutorials aggregated from various leading developer communities.
Copyright 2016 By CodeChannels.com All rights reserved.