I’m trying to make a sql with grails, and I couldn’t make it so far…
I have 3 domain classes:
class Device {
String imei
List nodes
static hasMany = [nodes:Node]
}
class Node {
Integer signal
static belongsTo = [network : Network]
}
class Network {
String ssid
static hasMany = [nodes: Node]
}
So, it’s kind of a many to many relation with 3 tables (I need this third table, because I need to have some vars in it)
I need to find all the Networks of one device(by imei). Any ideas..?
Thanks!
Doesn’t:
do it?