I have follow code in my java DAO class.
Query query = session.createQuery("select new Question(q.qid, q.qtype) from Question q where q.qlang=:lang ");
- Does using new object type in a hibernate query affect performance? In What way is it affected?
- Over all code execution (be it the above java code or the sql query it gets converted into and then the assembly of the sql result in a
Question
object), does it increase or decrease the overall performance of the application?