openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ram <>
Subject passing select column list as string
Date Mon, 15 Feb 2016 21:12:46 GMT
    i was trying to write a namedquery , but would like to pass the select columns as arguments

@NamedQuery(name="emp.findAll", query="SELECT,,s.address FROM emp where and"). 

I would like to pass ",,s.address " it as string instead of entity.column. 

@NamedQuery(name="emp.findAll", query="SELECT ?string FROM emp where and"). 

can i do this if so how can i pass this ?string

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message