what is main advantage of hibernate as compared to jdbc?
Printable View
what is main advantage of hibernate as compared to jdbc?
Hibernate has JDBC we must provide drivers along with dialect for that database main thing of hibernate is ORM. You can provide classes related to entities to the table. you can comparitively ask Hibernate with Entity Beans.
[b][b]compare to hibernate jdbc is better why because jdbc interact with java application directly but when we are devloping the project using jdbc in the future we will not change the code that means suppose now you are using oracle in future you want to use mysql you have to change entire code at that time hibernate is better and also hibernate support o-r mapping technology and its maintain cache levels performans fast compare to ejb also.ok[/b][/b]
hibernate is bettar than jdbc because hibernate provides transparent persistence so
developer does not need to write code explicitly to map databse table tuples to application objects during interaction with rdbms.
also jdbc supports native structured Query Language.Developer has to find out the efficient way to access database, whereas hibernate provides powerful query language hibernate query language (independent from type of database) that is expressed in a familiar sql like syntex