Question: what is the difference between native query and named query?
Answer: Native query refers to actual sql queries (referring to actual database objects). ... Named query is the way you define your query by giving it a name. You could define this in mapping file in hibernate or also using annotations at entity level.