15:17 example jpa mapping 18:50 example jpa with spring boot 27:32 entity class mappings 30:39 entity manager 31:30 repository 34:28 command line runner 39:56 jpa dependency configuration
I think the course should be updated. The spring initializr project that is downloaded in the video is too old, but if we follow the steps with the newer version of initialzr, things are broken. Like, in the case of the JPA project, I had the following error right after trying to start the server: "Error creating bean with name 'dataSource' defined in class path resource". Great content, but needs to be updated for newer students. Thanks!
I'm halfway through but there are a couple of things that are outdated that may give you grief if you are trying to do this tutorial hands-on. 1. Package names can no longer start with "javax" as in javax.persistent.Entity. Due to Oracle owning the name "Java", they now begin with "jakarta". 2. Most importantly, do not create an Entity class "User" as instructed in this video. Hibernate will try creating a table named, "user" which is now a reserved word (unless surrounded by double quotes which you can't do) and the database creation will fail with a syntax error. I refactored the class name from "User" to "UserRecord" and the syntax error went away. 3. When trying to use the H2 console, the name of the database isn't what the video provides. You'll see it printed in the console when the code begins to run. Mine is showing within this line: "H2 console available at '/h2-console'. Database available at 'jdbc:h2:mem:dc546f69-7404-4bd1-9488-77d7a7d543b4'
1. Absolutely right. Spring Boot 3 uses Jakarta EE. 2. Easier way would be to add @Entity Annotation. @Entity(name = "user_details") public class User { 3. I would recommend setting up a proper URL: spring.datasource.url=jdbc:h2:mem:testdb (add to application.properties) Debugging guide has more details - github.com/in28minutes/in28minutes-initiatives/blob/master/The-in28Minutes-TroubleshootingGuide-And-FAQ/jpa-and-hibernate.md#tables-are-not-created
@@in28minutes Nice! Thank you very much for the updates. I will make them and play some more. And, thank you for the huge amount I've learned from several of your Udemy courses already!
Hello, I am having an issue with running the java application at 37:44. It shows Application Failed To Start and it says Port 8080 is already in use. Please help!
I am having a doubt, if we are creating a new command line runner class for save and findbyid method in it. What abt the initial command line runner where main is present which gets run fist. We know that thread starts from main how new command line runner starts.
Good Morning Ranga Sir. I have created a Springboot,Jpa project and configured 2 databases. Can we update the existing records with Unique constraint? Table doesn't have Primary Key. Here, I am fetching the records from Azure MS SQL Server View and Loading into On Premise Oracle DB Table. In Azure Microsoft SQL Server View, most of columns are having duplicate values. Here, I am fetching the data from Azure DB , then deleting the existing records from Oracle table and inserting the Azure Db data into Oracle DB table. Instead of deleting the existing records from Oracle Db table, can we update the existing records in Oracle DB table ??
Hi, with Hibernate can I map my columns dynamically? I have many users and each one can define a different set of columns to use(those preferences are stored in a table) and when hibernate starts I don't know which columns will be used by every user before I load the preferences table.
Thank you, magician. amazing video. Do you provide a course where I can watch your lecture with (paper study source)pdf or ppt...etc, which will help me revise without machine?
sir i have few doubt on JPA , please help me 1) i do not want to define PK/FK at db level but in my jpa @query i want to implement joins , how can we achive this (with regular code its giving error or trying to create ddl (ddl=true enabled) ) 2) sometimes we use self join so there as well the relation changes based on requirement, so what to use joins without defining relation 3) in JPA is it possible to define entity without PK ? Please help me
Hi, thanks for this video, it was really helpful. I have issues and unable to figure it out. I have 3 table: 1. Pics; 2. Album 3. Pics-Album relation. Now, let's say I have 100 pics and I have created an Album 'abhi' and put 5 pics into that album. This will add 5 records in Pics-Album relation table. Then if I update Album name, hibernate is running a delete query and removing all records from Pics-Album relation table. Can you please help ?
getting this in browser: Whitelabel Error Page This application has no explicit mapping for /error, so you are seeing this as a fallback. Sat Mar 06 23:20:45 IST 2021 There was an unexpected error (type=Not Found, status=404).
15:17 example jpa mapping
18:50 example jpa with spring boot
27:32 entity class mappings
30:39 entity manager
31:30 repository
34:28 command line runner
39:56 jpa dependency configuration
22:12 Difference between JPA and Hibernate. Thank you for pointing it out. Good thing to know.
Bruh this stuff is just liquid gold. More power to you mate.
That fart at 1:57 gives me life
Thats a door shut sound 😂
Very nicely explained , my basics are now super clear
I think the course should be updated. The spring initializr project that is downloaded in the video is too old, but if we follow the steps with the newer version of initialzr, things are broken. Like, in the case of the JPA project, I had the following error right after trying to start the server: "Error creating bean with name 'dataSource' defined in class path resource". Great content, but needs to be updated for newer students. Thanks!
It should be a dependency issue try removing version from dependency
I'm halfway through but there are a couple of things that are outdated that may give you grief if you are trying to do this tutorial hands-on.
1. Package names can no longer start with "javax" as in javax.persistent.Entity. Due to Oracle owning the name "Java", they now begin with "jakarta".
2. Most importantly, do not create an Entity class "User" as instructed in this video. Hibernate will try creating a table named, "user" which is now a reserved word (unless surrounded by double quotes which you can't do) and the database creation will fail with a syntax error. I refactored the class name from "User" to "UserRecord" and the syntax error went away.
3. When trying to use the H2 console, the name of the database isn't what the video provides. You'll see it printed in the console when the code begins to run. Mine is showing within this line: "H2 console available at '/h2-console'. Database available at 'jdbc:h2:mem:dc546f69-7404-4bd1-9488-77d7a7d543b4'
1. Absolutely right. Spring Boot 3 uses Jakarta EE.
2. Easier way would be to add @Entity Annotation. @Entity(name = "user_details") public class User {
3. I would recommend setting up a proper URL: spring.datasource.url=jdbc:h2:mem:testdb (add to application.properties)
Debugging guide has more details - github.com/in28minutes/in28minutes-initiatives/blob/master/The-in28Minutes-TroubleshootingGuide-And-FAQ/jpa-and-hibernate.md#tables-are-not-created
@@in28minutes Nice! Thank you very much for the updates. I will make them and play some more. And, thank you for the huge amount I've learned from several of your Udemy courses already!
Excellent one.. You have explanation is super and covered most of important things to know
Great tutorial, I managed to solve the problem where I was stuck, appreciated.
Awesome lecture, thank you bro.
Exactly what I was looking for
JPA starts at 13:15
Thanks , you saved my time
❤️❤️ amazing and short
26:20 can use lombok now and avoid manual implementation of getters/setters
Yes. Lombok is an option.
U r doing great job man.. Want ur success in every way .
What is the reason behind having the default constructor?
I just tried out findAll method throws exception if the default constructor is not provide.
Hello, I am having an issue with running the java application at 37:44. It shows Application Failed To Start and it says Port 8080 is already in use. Please help!
I did not get msg of "New User is created" means...my record has not been inserted...even no error msg
Thanks for this
Thanks sir for such tutorial
This was a really great step by step tutorial. Thank you!
I am having a doubt, if we are creating a new command line runner class for save and findbyid method in it. What abt the initial command line runner where main is present which gets run fist. We know that thread starts from main how new command line runner starts.
How can I clear EM cache if I'm using Spring Data JPA?
Is @EnableTransactionManagement important to be added if we are adding @Transaction?
Can you tell me any tutorial where you have explained about @EnableTransactionManagement and when this is to be used
What about how to fectch r modify data in mysql using java criteria builder quire's ?
I am using Linux OS Ubuntu so where can I get Hibernate Jar files for eclipse
Thanks for nice explanation video, can you please provide Many to many relational ship example also.
That's quite a tutorial. Great work!
Good Morning Ranga Sir.
I have created a Springboot,Jpa project and configured
2 databases. Can we update the existing records with Unique constraint? Table doesn't have Primary Key.
Here, I am fetching the records from Azure MS SQL Server View and Loading into On Premise Oracle DB Table. In Azure Microsoft SQL Server View, most of columns are having duplicate values. Here, I am fetching the data from Azure DB , then deleting the existing records from Oracle table and inserting the Azure Db data into Oracle DB table. Instead of deleting the existing records from Oracle Db table, can we update the existing records in Oracle DB table ??
Hi, with Hibernate can I map my columns dynamically? I have many users and each one can define a different set of columns to use(those preferences are stored in a table) and when hibernate starts I don't know which columns will be used by every user before I load the preferences table.
Thank you, magician. amazing video. Do you provide a course where I can watch your lecture with (paper study source)pdf or ppt...etc, which will help me revise without machine?
He has cources on udemy
Thank you, sir :-) This tutorial helped me a lot!
you are the beeeeeeeeeest
sir i have few doubt on JPA , please help me
1) i do not want to define PK/FK at db level but in my jpa @query i want to implement joins , how can we achive this (with regular code its giving error or trying to create ddl (ddl=true enabled) )
2) sometimes we use self join so there as well the relation changes based on requirement, so what to use joins without defining relation
3) in JPA is it possible to define entity without PK ?
Please help me
Your video is nice but can u make a video using intellij without using springboot and using SQL or oracle dB I am trying but I don't know how to do
This is a great review. thanks alot
How to index pdf content by using spring-data?
We will really appreciate if some one can answer this question.
HELP PLEASE!!
it keeps on giving the error Consider defining a bean of type 'service.UserDAOService' in your configuration.
Can you please make a video on EclipseLink ORM?
Hi, thanks for this video, it was really helpful. I have issues and unable to figure it out. I have 3 table: 1. Pics; 2. Album 3. Pics-Album relation.
Now, let's say I have 100 pics and I have created an Album 'abhi' and put 5 pics into that album. This will add 5 records in Pics-Album relation table. Then if I update Album name, hibernate is running a delete query and removing all records from Pics-Album relation table. Can you please help ?
I'm getting an error when inserting the data in database... It's returning a nullPointer...
Check if you have added @Transactional annotation on class if that also dont work, try adding it to the method.
Sir please help us in MySQL database
It’s nice tutorial but it’s old and sometimes has fart sounds
Tutorial bahut Acha but itta kaun padta hai :p
1:55 Strange!!
that was a bug
hahaha. I yelled at my roommate for no reason 😂😂😂
@@emanuelb.2559 A stomach bug
if you hear it closely you know he is farting in middle of video
8:34 is another one 😂
In 28 minutes became in 60 minutes
getting this in browser:
Whitelabel Error Page
This application has no explicit mapping for /error, so you are seeing this as a fallback.
Sat Mar 06 23:20:45 IST 2021
There was an unexpected error (type=Not Found, status=404).
What's with the farts lol
@@in28minutes Haha okay. Great tutorial btw, if only I knew this before I could have applied this from my previous jobs.
user repository has no inbuilt method called save according to eclipse
ahh it ignore. it just wasn't registering because i hadn't saved the user repository file.
ok
7:48
I came here just for this.
vague explanation :(
voice pitch should be consistent, pitch is going up and down and up and so on...
7:48 12:00
Fart ..? 1:57
Why is this lecture full of farts
What the fuck is that squeaking
Your voice is very irritating at the end of sentence.
I am not getting the transactional annotation(javax.persistence.annotation). Can some one help me to solve this!