Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Grails one-to-many in one direction

 
J Solomon
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic