Тёмный

Part 2 - Infinite RecursionStackOverflow Problem Solved in JPA 

Kindson The Tech Pro
Подписаться 56 тыс.
Просмотров 13 тыс.
50% 1

Infinite RecursionStackOverflow Problem Solved in JPA using
JsonManagedReference,
JsonBackReference,
JsonIdentityInfo
Subscribe Kindson The Tech Pro RU-vid: bit.ly/2PpJd8Q
Join my group ICS on Facebook: bit.ly/2UULiQj
Follow me on Instagram - / kindsonm
Connect with me on LinkedIn: / kindson
Follow me on Twitter: / kindsonm
Learn about me: www.kindsonthegenius.com

Наука

Опубликовано:

 

10 июл 2019

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 44   
@timarbeit2894
@timarbeit2894 Год назад
As a jr. dev making his first own application from scratch for work: THANK YOU! I simply didnt know about the annotation! Big help!
@sagarthapliyal5661
@sagarthapliyal5661 Год назад
Wow bro lovely, I was running over the internet all over but did not find the solution.... Amazing bro, thankk you so much
@juanpablosuarezsoler5068
@juanpablosuarezsoler5068 Год назад
You're the best, thanks so much! Subscribed!
@felipeavila1883
@felipeavila1883 Год назад
I'm Brazilian, you helped me a lot, thank you
@himanshunegi8108
@himanshunegi8108 2 года назад
Hello in case of microservices we have to put annotation on DTOS or Entity?
@MsProtestante
@MsProtestante 4 месяца назад
Very good stuff! Congrats!
@eleafarpan
@eleafarpan 2 месяца назад
Thank you so much . I just have a question. Can it work for more than one relationship, that is, if this same departments table were related to the Professors table, can you use the @JsonBackReference and @JsonManagedReferences annotations for these tables?
@manee427
@manee427 2 года назад
This video helped me a lot Thanks really perfect
@capitanrdc99
@capitanrdc99 Год назад
Amazing job!!!
@NTICTECH
@NTICTECH 2 года назад
Thanks so much! great video
@KindsonTheTechPro
@KindsonTheTechPro 2 года назад
Glad it was helpful!
@emman2life
@emman2life 4 года назад
Hi, thanks for this tutorial. please which database are you using? please can you make a video on how u link it on spring?
@KindsonTheTechPro
@KindsonTheTechPro 4 года назад
Emmanuel Imhontu , see here ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-lJQoLIK8LQQ.html
@alexdev__
@alexdev__ 11 месяцев назад
Thanks my bro... You have earned the sky
@mohamedifthikharmohamednas4109
@mohamedifthikharmohamednas4109 2 года назад
Information is apt for this topic!!
@KindsonTheTechPro
@KindsonTheTechPro 2 года назад
My pleasure 😊
@genos9926
@genos9926 2 года назад
Thanks for the solution.
@KindsonTheTechPro
@KindsonTheTechPro 2 года назад
Happy to help😊
@uclongo8367
@uclongo8367 2 года назад
I'm using jsonidentify but i still got problem with many to one relation, when i show json data from the child, the parent data still repeat it's child list , i want to remove it, please help me
@lakshmithangamalai1550
@lakshmithangamalai1550 4 года назад
it was very useful..Thank a lot !!!..
@KindsonTheTechPro
@KindsonTheTechPro 4 года назад
You are welcome!
@azeqsdwxc
@azeqsdwxc 4 года назад
thanks!
@MrFahimansari
@MrFahimansari 2 года назад
Thanks so much. The video is really informational. I have a doubt, will this apply for one to one bidirectional relationships also
@KindsonTheTechPro
@KindsonTheTechPro 2 года назад
It works for bi-relationships as well
@MrFahimansari
@MrFahimansari 2 года назад
@@KindsonTheTechPro hey I wanted to know if it works for one to one mapping also?
@wilsonho4577
@wilsonho4577 5 лет назад
does it work on files that have multiple one to many and many to one relationship?
@KindsonTheTechPro
@KindsonTheTechPro 5 лет назад
This is an interesting question! I'll check
@heumn1899
@heumn1899 10 месяцев назад
Спасибо
@Aakashkumar-pc3xs
@Aakashkumar-pc3xs Год назад
Hey is there any way to do this without any extra annotation, because in my previous company my manager use to do bi-directional mapping with any extra annotation, and all data was coming perfectly.
@vrxtremesxg3299
@vrxtremesxg3299 5 месяцев назад
write your custom methods for saving
@Andrescudero1
@Andrescudero1 4 года назад
Thanks so much! great video but how could you solve this problem with many to many relation? I'd appreciate very much your answer :)
@adels6472
@adels6472 2 года назад
the solution above stops the recursive loop error.... but with many-to-many, it gives a nested feedback ... which DOSE solve the problem but provides another :)
@pabloleyes5574
@pabloleyes5574 2 года назад
You just saved me!
@nguyenphuongduycthuchanhfp1569
@nguyenphuongduycthuchanhfp1569 2 года назад
Thanks so much :))
@KindsonTheTechPro
@KindsonTheTechPro 2 года назад
My pleasure 😊
@thiru53
@thiru53 2 года назад
Hello sir, I am getting same issue with many-to-many relationship with composite primary key in jpa using third table Can you please suggest how to resolve this issue
@besttutorials1810
@besttutorials1810 Год назад
Did you fix it yet? I have the same problem!
@amarnathgreentech5466
@amarnathgreentech5466 4 года назад
i am getting only id values instead of complete object please help me..
@KindsonTheTechPro
@KindsonTheTechPro 4 года назад
Check your getters and setters. Also check you have two constructors. Let me know the outcome
@luisguilherme8225
@luisguilherme8225 Год назад
Thank you very much, I'm Brazuca and you helped me a lot
@RamKumar-rg3gr
@RamKumar-rg3gr 4 года назад
sir please make font large so mobile user can see easily
@Sensei_coding
@Sensei_coding 2 месяца назад
@JsonIgnore
@HandledToaster2
@HandledToaster2 2 года назад
LOMBOK USERS: If you're scratching your head because none of this works, it's because of Lombok! It's generating .toString, .equals, and .hashCode methods in the Student class that calls these same methods in the Department class, which in turn calls the Student methods and on and on! The solution is to put the following annotations above the department property in Student class: @ToString.Exclude @EqualsAndHashCode.Exclude That will omit the company property from these methods, breaking the recursion loop. Hope this helps!
@bollywood90ssongs65
@bollywood90ssongs65 2 года назад
Hi Kindson, can you please help me solve this because it is not working for me, if there is any setting required please let me know. thanks in advance. @Data @Entity @Table(name = "address") public class Address { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private int id; @Column(name ="address") private String address; @ManyToOne @JoinColumn(name = "user_id") @JsonBackReference private User user; } @Data @Entity @Table(name = "user") public class User { @Id @Column @GeneratedValue(strategy = GenerationType.IDENTITY) private int id; @Column(name ="username") private String name; @OneToMany( mappedBy = "user", cascade = CascadeType.ALL, targetEntity = Address.class) // @JoinColumn(name = "user_id", referencedColumnName = "id") @JsonManagedReference private Set addresses = new HashSet(); }
Далее
How To Fix Infinite recursion Loop in Spring boot
10:27
Crossing the Most Dangerous Crosswalk
00:24
Просмотров 7 млн
Smart Sigma Kid #funny #sigma #comedy
00:26
Просмотров 5 млн
Elden Ring DLC - ПОДОЖГЛО ПОПУ!
07:26
Просмотров 407 тыс.
5 Simple Steps for Solving Any Recursive Problem
21:03
5 JavaScript Concepts You HAVE TO KNOW
9:38
Просмотров 1,4 млн
Cascades
14:28
Просмотров 5 тыс.
the right way to organise your code
17:33
Просмотров 194 тыс.
How To Debug React Apps Like A Senior Developer
21:07
Choose a phone for your mom
0:20
Просмотров 7 млн
Samsung laughing on iPhone #techbyakram
0:12
Просмотров 676 тыс.
Копия iPhone с WildBerries
1:00
Просмотров 1,8 млн
Красиво, но телефон жаль
0:32
Просмотров 1,4 млн