• Post Reply Bookmark Topic Watch Topic
  • New Topic

select some attributes with criteria api  RSS feed

 
Yevgen Bushuyev
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
How can I specify more than one attribute here:

query.select((Selection<? extends E>) root.get("name"));

in other words, how can i get this query with criteria api "select name, second_name from Person" ?

Thank you!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!