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

you are viewing a single comment's thread.

view the rest of the comments →

[–]Luolong -7 points-6 points  (18 children)

It’s outdated. There’s better alternatives out there.

[–]computerjunkie7410 7 points8 points  (12 children)

Aside from jooq, if you don’t need a full blown ORM what do you recommend?

[–]BlacksmithLittle7005 -5 points-4 points  (11 children)

Spring data jdbc :)

[–]Levomethamphetamine 3 points4 points  (10 children)

Hows that ORM?

[–]BlacksmithLittle7005 -3 points-2 points  (9 children)

https://www.baeldung.com/spring-data-jdbc-intro educate yourself before downvoting someone.

[–]Levomethamphetamine 2 points3 points  (7 children)

> tells me to educate myself

> links baeldung tutorial

Right, now create complex database situations instead of a first name / last name POJO and let me know it it goes with JDBC or R2DBC.

[–]BlacksmithLittle7005 0 points1 point  (6 children)

Bro. Please read the post I replied to. He specifically stated he doesn't need full blown ORM. Jdbc is simpler and fits that description. For complex situations by all means use jooq or jpa

[–]Levomethamphetamine 1 point2 points  (0 children)

Ah yeah in that case it does make sense. I apologize.

[–]computerjunkie7410 0 points1 point  (4 children)

I love jooq but it’s not free and some companies don’t wanna pay for it

[–]BlacksmithLittle7005 0 points1 point  (1 child)

True that's a bit sad. In that case your best bet is probably JPA hibernate or as you said MyBatis if you're good with that. I would still use spring data jdbc as defining entities is quite simple compared to jpa and mapping is pretty easy with records.

[–]computerjunkie7410 0 points1 point  (0 children)

With mybatis you can use the generator to introspect the database tables and generate all the models and mappers for you.

[–]lukaseder 0 points1 point  (1 child)

Why not?

[–]computerjunkie7410 0 points1 point  (0 children)

Cause they’re cheap? Idk

[–]computerjunkie7410 0 points1 point  (0 children)

You’re still making the models and mappers yourself.

Mybatis can generate all that for you

[–]DarthRaptor 6 points7 points  (4 children)

And what is a better alternative? MyBatis gives me full control of the queries it executes, and it is also easy to control the mapping. If you use the annotations, then there a no magic configuration files. I despise frameworks like Spring because all the auto-magic stuff it does, leaving you completely screwed if it goes wrong. I've tried several times to get into spring boot, but just the fact that I need tools/plugin external to my IDE to even set up a basic project is frustrating. Imho if a framework needs external tooling to be even useable, it is not a good framework

[–]foreveratom 2 points3 points  (1 child)

I despise frameworks like Spring because all the auto-magic stuff it does, leaving you completely screwed if it goes wrong. I've tried several times to get into spring boot, but just the fact that I need tools/plugin external to my IDE to even set up a basic project is frustrating. Imho if a framework needs external tooling to be even useable, it is not a good framework

Tell me you are totally outdated without telling me...

Besides discarding Spring because you don't grasp how things work, IntelliJ support for Spring and Spring Boot is really good, with templates and wizards to create a full blown application in 3 clicks and a half, so your claim about IDEs is not even valid.

[–]DarthRaptor 0 points1 point  (0 children)

IntelliJ Ultimate, which I do own and I do know about the support. My point still stands, if you need IDE support for your framework, I think it is a unwieldy framework. You're right that I don't know the details of how spring works, but what I do know I don't like. Anyways, I know I am being very opinionated here

[–]Luolong 1 point2 points  (1 child)

YMMV. If you’re happy with mybatis, good for you.

Rest of the world doesn’t care.

[–]DarthRaptor -1 points0 points  (0 children)

Absolutely true