Grails: master domain field by detail domain field [hasMany]?

Why not create another domain like class Order { static hasMany = execDepartments: DepartmentOrder String orderNo //boolean signature ... } class DepartmentOrder{ boolean signature Order order Department department } class Department { String name static hasMany = execOrders: DepartmentOrder } Then you can write the belongTo.

I know this way, but thought some other simple way exists or not. Thanks. – nikli Oct 26 at 13:14.

What you need is a list of signatures in the Order domain. Possibly an OrderSignature domain that maps signatures to orders.

Signature must be belongs to Order not Department, each Order has signature for each Department. Each orders must have many departments with signatures. – nikli Oct 25 at 10:57 But I have to join OrderSignature also with Department, how can I do it.

@gotomanners – nikli Oct 25 at 11:22.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions