Hello, i was trying to write a namedquery , but would like to pass the select columns as arguments .
@NamedQuery(name="emp.findAll", query="SELECT s.id.name,s.id.phone,s.address FROM emp where s.id.name=:na and s.id.phone=:ph"). I would like to pass "s.id.name,s.id.phone,s.address " it as string instead of entity.column. @NamedQuery(name="emp.findAll", query="SELECT ?string FROM emp where s.id.name=:na and s.id.phone=:ph"). can i do this if so how can i pass this ?string --Thanks