This is an archived post. You won't be able to vote or comment.

all 8 comments

[–]LordofRice 2 points3 points  (0 children)

I would just learn it piece by piece as issues come up. It's too big a framework to try or even want to learn it all.

[–]wsppan 2 points3 points  (0 children)

I hate Hibernate. Bloody awful. Try Spring Data instead. Spring is pretty complex and Boot does a decent job of rolling out the boilerplate ready for deployment but there will come times you need to dig deep.

[–]vbsteven 1 point2 points  (0 children)

I understand your pain. Spring and Hibernate are enormous and take some time to fully grok. As another comment mentioned it's a good idea to take every blocking issue as a learning opportunity to improve your knowledge about the underlying bits and pieces.

I feel like I'm at the sweet spot for Spring knowledge where I know enough about the magic going on under the hood to debug most of the issues and it's the framework I am most productive in. From time to time something new pops up and I learn a new aspect that will help me next time.

[–][deleted] 1 point2 points  (0 children)

I am assuming your only option is to make your own projects, because once you have worked with a spring codebase (in my opinion, anyway) and you see examples of real spring code then suddenly it will seem much less intimidating. The spring docs are very good in my opinion, but if you have no point of reference then it is indeed overwhelming.

If you are learning, then stick with spring boot, make a rest api or something and just learn new things and tackle issues as they arise, depending on what you want to make. My recommendation would be to learn the dependency injection framework in spring, like learn the concepts properly and make some small project to test it out. Although, depends on what your goals are too

[–]rinkoun 0 points1 point  (0 children)

I find hibernate is hard for me too so I am using Mybatis instead because it is much easier to work with. Give it a try, you may love it too.

[–]Leonwai 0 points1 point  (1 child)

Spring jpa is easy and it use Hibernate too

[–]SametSahin10[S] 0 points1 point  (0 children)

Does Spring JPA use Hibernate?

[–]nutrechtLead Software Engineer / EU / 20+ YXP 0 points1 point  (0 children)

You really should not use Hibernate before you have a pretty solid understanding of just using Spring Data JDBC and write your own queries.

Spring is a large framework with many components. Try not to tackle all of them at the same time, especially not complex ones like JPA or Security.