Fetch data from more than two tables using grails domain -


text after "itemprop =" text ">

I have 3 tables like v_ims_circuits, v_ims_productcodes and v_ims_domainmain and I want to fetch data from this table using grails domain Are there. Internally the query grails should be built like the query below using the domain.

  select cir.circuitname, cir.status, cir.oldname, cir.speed, null "count of subs", cir.productcode, cir.ordernr, cir.createuser, cir.createdate , Cir.acquisitiondate, v_ims_circuits cir to dom.domainname, pc v_ims_productcodes, v_ims_domainmain dome where cir.productcode = pc.product and pc.domainid = dom.id and cir.circuitname =?  

Any one can help me on this.

After

GORM (and in hibernation) requires a different mentality compared to SQL The first step is your three Creating domain class for tables; Chapter 7 of Circuit, ProductCode, and DomainMine Grails Reference Guide is a good place to start.

Your domain objects section 7.4 is created to describe several ways that you can bring your data. I also prove to be helpful.


Comments

Popular posts from this blog

winforms - C# Form - Property Change -

javascript - amcharts makechart not working -

java - Algorithm negotiation fail SSH in Jenkins -