Assume there are two tables. Table A and Table B.
Table A has {id, name, desc}
Table B has {id, name, place}
I’m trying to display the name, id columns where a.id equals b.id.
Hibernate is not displaying records properly.
Could someone help me with the solution?
Thanks,
Kathir
You can write this type of queries like this:
In this case hibernate internally stores the multiple column values of each row into an object array and stores these object arrays into List collection. At the time of iterating the collection, we need to typecast the result into an object arrays.
Cheers and Happy Coding!