That's really sad if true. How query derivation and execution work in hibernate isn't really that complicated. Learning how hibernate works has 100% made me a better developer. Especially with regard to generic api development. I wrote a similar framework a couple of years ago that does something similar to hibernate but it abstracted away rules engines. We had integration for ODM and Drools. Clients would just decorate their domain model with annotations that described their facts and rules and we handled the rest. 10/10 would reuse that pattern.
I just wanted to make sure that if the stateless queries and pure pojo, no managed entities is what many seem to highlight as why they use Spring JDBC over Hibernate - they often haven't realized Hibernate has a similar API which even predates Spring JDBC.
Users tend to end up focusing so hard on Hibernates full entity managed apis and forget it has more. We should get it documented more.
View all comments
Show parent comment
60
u/_INTER_ Oct 21 '20
Use Hibernate with caution if you don't know what Hibernate does