Hi folks
I have a map in my bootstrap.groovy, how can use this map to populate another map in my domain class?
here is the code
bootstrap.groovy
def data = [ x:'45.5',
y:'7',
z:[ z0:'2.5', z1:'3.5', z2:'4.0', z3:'3.5', z4:'5.0']
]
what code should I write here?
//some code
domain class
class target implements Serializable{
//Just for the time being
List list = new ArrayList()
}
any ideas would be appreciated
First thing is your question asks how to populate one map with another map, but you define a list in your domain. So if I’m understanding you correctly, your domain would more likely be: