| Author |
Grails one-to-many in one direction
|
J Solomon
Greenhorn
Joined: Oct 08, 2012
Posts: 22
|
|
New to grails here and I'm looking to model a one-to-many relationship, but I only want creates and updates to work in one direction.
So what I'm looking for is when I create a new environment, I don't want to be able to add PropertiesFiles to it, since you cannot have a properties file without first having an Environment (kinda like the whole chicken and egg thing). When I create a new Properties file, you should have to associate it with a pre-existing Environment. I hope this makes sense. Thanks for the help in advance.
|
 |
Gregg Bolinger
Ranch Hand
Joined: Jul 11, 2001
Posts: 15230
|
|
|
This is not something that you control with your Domain relationships. This is something you control with business logic in your Controller/Service as well your views.
|
 |
 |
|
|
subject: Grails one-to-many in one direction
|
|
|