Issue Type: Task Task
Affects Versions: 4.3.0.Beta2
Assignee: Unassigned
Created: 10/May/13 5:27 AM
Description:
public class ItemSummary {
    public ItemSummary(Long itemId, String name, Date auctionEnd) {
    }
}
@SqlResultSetMapping(
    name = "ItemSummaryResult",
    classes = {
        @ConstructorResult(
            targetClass = ItemSummary.class,
            columns = {
                @ColumnResult(name = "ITEM_ID"),
                @ColumnResult(name = "ITEM_NAME"),
                @ColumnResult(name = "ITEM_AUCTIONEND")
            }
        )
    }
)
Query q = em.createNativeQuery(
    "select " +
        "i.ID as ITEM_ID, i.NAME as ITEM_NAME, i.AUCTIONEND as ITEM_AUCTIONEND " +
        "from ITEM i ",
    "ItemSummaryResult"
);
List<ItemSummary> result = q.getResultList();
assertTrue(result.get(0) instanceof ItemSummary); // Fails, Object[]
Project: Hibernate ORM
Priority: Major Major
Reporter: Christian Bauer
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira