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
Post a Comment