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

android - IllegalStateException: Cannot call this method while RecyclerView is computing a layout or scrolling -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

c# - Oracle Advanced Queues - Dequeueing Commit/Rollback -