JDBC
sql statement mixed with Java code
Hibernate
Automatically generate sql statement
Mybatis
Write the sql statement in the xml file and generate it dynamically when using it
sql statement mixed with Java code
Automatically generate sql statement
Write the sql statement in the xml file and generate it dynamically when using it