playframework - JPA or Play Framework list from query joining 2 tables -


mainly work jsf totally new annotation subject

if can

i wanna list query

select  f.code  ,f.name || '-' || e.name   fs.eligible e  right outer join fs.financial_support f on e.code = f.code ;  

the query above retrieves list 2 tables , concatenating name field both tables!!

how can in jpa or in play query supported play framework ???

have read of play framework documentation, part jpa , domain model.

you can access entity manager @ time calling

entitymanager entitymanager = jpa.em(); 

using can create query want, "native" query. example:

list<object> results = jpa.em().createnativequery(     "select  f.code  ,f.name || '-' || e.name "+     "from fs.eligible e  right "+     "outer join fs.financial_support f on e.code = f.code").getresultlist() 

Comments

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -