I just want to know is there any way to write sql query that will work in all data base like i need not to change my Sql query if i am switching from Oracle to My sql Or some other databae,
Hibernate will help in this situation and if it will help how?
I dont know any thing about hibernate please explain me how it will help .
Thanks
Sudarshan
Hibernate create and Object Relational Mapping. That is it considers tables as objects.
So we use HQL to query the objects and not on the database. Hibernate takes care of all that.
One another option is to have you queries in a external file. So that depending on the database you can switch the files and no code changes are required. This is not a widely accepted solution