DEV Community

Discussion on: How to build Enterprise Level Web Applications using Java?

Collapse
 
matthewekeller profile image
matthewekeller

I always hated hibernate. Why is anyone afraid of SQL? First hibernate said "you won't have to write sql". Then they said "We invented hibernate sql". Really?? There is no reason to be afraid of SQL. It works pretty darn well. If you are worried about managing transactions, you can do that all with annotations in Spring now.

Collapse
 
lexiebkm profile image
Alexander B.K.

My main reason to stick to SQL is code transformation.
I mean, suppose that I write backend using PHP + Laravel and MySQL. When someday I have to use ASP.net or Node, then I need to rewrite my database related code using different ORM provided by these stacks.
Whereas, with T-SQL, I can just use the same SQL code in the new backend stack.
Although I am currently using Laravel, I don't use its Eloquent ORM for complex computation, especially when stored procedures seem to be the only solution.

Thread Thread
 
abdurrkhalid333 profile image
Abdur Rehman Khalid

You have explained that in a very nice and attractive way. Thank you for that.

Collapse
 
abdurrkhalid333 profile image
Abdur Rehman Khalid

To Be Very Honest, I Love to Write Queries Manually, But, In Simple words, Hibernate is there to easily understand the Relationships and Entities, and It also supports the thing called one thing for everywhere kind of concept as well. This is why the ORMS are in much demand these days.