What is the object type returning in a join of a hibernate query

hibernate, java

Solution

`SELECT p FROM Product p inner join ...` something like that gives you a list of `Product`s.

`FROM Product p inner join ...` something like that gives you a list of arrays.

Problem

When I have the below query it will give me a list of Product. ``` List<Product>= getCurrentSession().createQuery("SELECT p FROM Product p ").list(); ``` What will it return when there is a join as below. ``` getCurrentSession().createQuery("SELECT p FROM Product p inner join ProductCategory pc where p.id=pc.id").list(); ```

Original source

Related problems