How to use union all in hibernate query?



How to use union all in hibernate query?..

Answer / Sarita Verma

To execute a SQL `UNION ALL` query in Hibernate, you can create two separate Query objects and call the `unionAll()` method on them. Make sure both queries have the same return type and column order.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Hibernate Interview Questions

Is merge better than update?

1 Answers  


What does orm consists of?

1 Answers  


What is difference between hibernate session get() and load() method?

1 Answers  


What is lazy loading hibernate?

1 Answers  


What is indexing in hibernate?

1 Answers  


What is the limitation of hibernate?

1 Answers  


What are fetch types in hibernate?

1 Answers  


What is lazy and eager initialization?

1 Answers  


What is meant by annotation in hibernate?

1 Answers  


Does hibernate use jdbc?

1 Answers  


How do you hibernate?

1 Answers  


What happens if hibernate session is not closed?

1 Answers  


Categories