I play with Grails and find the ORM stuff tedious because I don’t quite understand what I do when it comes to domain classes. I hope someone can get me back on track
Consider the following
Test task One: a lot The hardware used in the task Physical equipment: 1
... this is similar to the classic scenario Order, OrderLine, Product, considered in examples of university databases
I created the following domain classes
class Job
{
String jobName
String jobDescription
}
class HardwareOnJob
{
static hasMany = [ jobs:Job, physicalHardware:PhysicalHardware ]
static belongsTo = Job
String role
}
class PhysicalHardware
{
String assetName
String model
String os
}
, , - , Grails , / , . , Grails hardware_on_job_job hardware_on_job_physical_hardware.
, - , . , , (HardwareOnJob), .
/ , , . Btw grails 1.2.1