java - Subselect expression with Ebean and PlayFramework -


in api work on have offer model class maps offer table database. offercontroller class contains several methods retrieving offers database linked various endpoints. need endpoint extended offer class. i'll show need in terms of sql query:

select *,  (select t t.offer_id = offer.id , t.other_id = $external_value) added_value offer; 

i know can use @formula @transient don't think can 'inject' $external_value @formula's query.

any ideas?


Comments

Popular posts from this blog

go - serving up pdfs using golang -

python - Best design pattern for collection of objects -

r - Using `bbmle:mle2` with vector parameters (already works using `optim`) -