loopbackjs - Loopback/StrongLoop with Oracle Relational Model -


i have relation schema in oracle above

table: tbook, bookid,bookname,bookdesc table: tcategory, categoryid,categoryname,categorydesc table: tbookcat , bookid, catergoryid,price 

strongloop models created each of above tables. need retrieve tbookcat object book name , categoryname. stuck here creating relation ship here across 2 models , retrieve 3 model. should created new flat combined model , use native sql? inputs appreciated here

my intention perform without making 3 calls.

select tbookcat.price, a.categorydesc, b.bookdesc ,a.categoryid,b.bookid tbookcat , tcategory , tbook b tbookcat.categoryid = a.categoryid , tbookcat.bookid = b.bookid a.categoryname = 'learn" , b.bookname='strongloop' 

can avoid making below 3 calls

  1. book.findone name
  2. category.findone name
  3. bookcategory.findone categoryname , bookname


Comments

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -