[Architecture design] How to execute SQL in Java application? 2WaySql vs ORM

[Architecture design] How to execute SQL in Java application? 2WaySql vs ORM

When you execute SQL in a Java application, you are wondering what to use. I wrote an article for such a person.

In conclusion, 2WaySql (DBFlute, uroboroSQL, Doma, etc.) is personally recommended.

The features of 2WaySql are as follows.

What is good is ...

Looking at the above, it may seem that I hate ORM, but ... As an "individual" developer, I like to use it! !! ORM is honestly very convenient! !! However, it's too convenient and I can do various things. When there are many developers, it is difficult to control. So, personally, using ORM is a system that issues a lot of simple SQL (such as reference API). I think it should be limited when it is built. Or, by wrapping the ORM appropriately, there are restrictions on the functions that can be used by developers on a system-by-system basis. I think I need to.

Recommended Posts

[Architecture design] How to execute SQL in Java application? 2WaySql vs ORM
How to deploy Java application to Alibaba Cloud EDAS in Eclipse
How to learn JAVA in 7 days
How to use classes in Java?
How to name variables in Java
How to concatenate strings in java
How to implement date calculation in Java
How to implement Kalman filter in Java
Multilingual Locale in Java How to use Locale
How to do base conversion in Java
How to implement coding conventions in Java
How to embed Janus Graph in Java
How to get the date in java
How to execute multiple commands in docker-compose.yml
How to get Excel sheet name list in Java (POI vs SAX)
How to display a web page in Java
How to get Class from Element in Java
How to hide null fields in response in Java
[Java] How to substitute Model Mapper in Jackson
How to solve an Expression Problem in Java
How to execute tasks in parallel in Swift in Swift Package
How to write Java String # getBytes in Kotlin?
How to call functions in bulk with Java reflection
How to create a Java environment in just 3 seconds
[Java] How to omit the private constructor in Lombok
How to jump from Eclipse Java to a SQL file
How to input / output IBM mainframe files in Java?
How to create a data URI (base64) in Java
How to display a browser preview in VS Code
[Java] How to execute tasks on a regular basis
How to generate / verify ID token in Java Memo
How to convert A to a and a to A using AND and OR in Java
How to build Java development environment with VS Code
How to convert a file to a byte array in Java
How to Git manage Java EE projects in Eclipse
Summary of how to implement default arguments in Java
How to put old Java (8 series) in macOS 10.15 Catalina
How to execute WebCamCapture sample of NyARToolkit for Java
Notes on how to use regular expressions in Java
How to change Java version and execute in an environment where Java cannot be installed freely
How to get the class name / method name running in Java
How to use JSON data in WebSocket communication (Java, JavaScript)
Memo: [Java] How to check groupId etc. described in pom.xml
How to store a string from ArrayList to String in Java (Personal)
What happened in "Java 8 to Java 11" and how to build an environment
How to call and use API in Java (Spring Boot)
How to use Java enums (Enum) in MyBatis Mapper XML
How to dynamically switch JDK when building Java in Gradle
How to develop and register a Sota app in Java
How to simulate uploading a post-object form to OSS in Java
How to derive the last day of the month in Java
Differences in how to handle strings between Java and Perl
How to switch Java in the OpenJDK era on Mac
How to install Web application for each language in Nginx
How to monitor application information in real time using JConsole
How to install PHP 7.4 and SQL Server drivers in CentOS 7.7
How to create an application
[Java] How to use Map
How to lower java version
[Java] How to use Map
How to uninstall Java 8 (Mac)