2013-08-12 2 views

답변

1

아래에보십시오 : -

Criteria criteria = session.createCriteria(Person.class); 
criteria.setProjection(Projections.projectionList().add(Projections.property("firstName"), "firstName") .add(Projections.property("lastName"), "lastName")) 
        .setResultTransformer(new AliasToBeanResultTransformer(PersonTO.class));