4 ms·
It was the @Query annotation which finally killed Spring for me. So I have to stuff all my SQL into an annotation now if I want raw JDBC? Madness. **ck that.
by cutler 4y ago
It was the @Query annotation which finally killed Spring for me. So I have to stuff all my SQL into an annotation now if I want raw JDBC? Madness. **ck that.
- kaba0 4y agoWhy would you have to do that? You can just inject an entitymanager to wherever you want to use it natively and do whatever you want.
- cutler 4y ago"inject an entitymanager"?? I don't even have any entities, just a db I want to query with raw sql.
- nick__m 4y agoNothing in Spring-boot force Hibernate upon you. I stated that I used to use mybatis, a resultset mapper... it's a lot closer to JDBC and if you really need raw JDBC, have a datasource injected where it's needed.