Hello. I've complex Criteria with several joins (createAlias for many-to-one and other relations). And after criteria.list() I got a list of Object[], where every class from join is situated in separate array item. But I really need objects for only one base class - class for whom I had created my Criteria. For example, sessionFactory.getCurrentSession().createCriteria( Account.class, "account" ); So I need only objects of Account in result list. If I set projection list with properties, I've got a list of Object[], where each column is in separate array item. What should I do to get normal list of objects for my class Account?
|