Home Tutorialhelp Comment YOUR HIBERNATE NATIVE QUERY EXAMPLE SUCKS!!!!

 
 

Comment

DISAPPOINTED FOLLOWER
YOUR HIBERNATE NATIVE QUERY EXAMPLE SUCKS!!!!,
March 10, 2009 at 7:03 AM

This sucks!!! What native SQL QUERY are you talking about here? Using entities with their getters and setters? A true native SQL QUERY uses a "QUERY" and does not use any of those.
Ex: createNATIVEQUERY (whatever the function for this)("Insert into [table] values(val1,val2)");
Your example defeats the purpose of what HIBERNATE designed NATIVE SQL QUERY for: which is to mimic as much as possible the way SQL was written in the past.
View All Comments | View Tutorial
Related Tutorial and Articles

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.