How does Hibernate use JDBC?
I know that Hibernate uses JDBC behind the scenes, but how 开发者_JS百科does it do this/ where does it do this?
Hibernate uses JDBC to connect to the database and execute the dynamic SQL that it generates.
Hibernate is nothing more than a SQL generation engine - it uses your objects and mappings to generate SQL for you instead of making you write it by hand.
Once it does that, everything is the same as if you had written the SQL yourself.
精彩评论