Reputation: 3488
I have a domain class Teacher that has many Students.
When I use
Teacher.students.each{it->
it.lastupdated=date;
}
The property for the student is persisted to the database automatically (and seemingly immediately).
Is there a way to prevent this behavior and have the values be transient until I explicitly save them?
Upvotes: 0
Views: 680