vendredi 28 mars 2014

Grails validate delete() Operation?


Vote count:

0




When deleting an instance with Grails I can perform



def user = User.get(1)
user.delete(flush: true)


For an instance I can validate if a save operation will succeed:



user.validate()


Is it possible to validate if a delete() will be successful before doing delete?



asked 1 min ago

confile

1,285





Aucun commentaire:

Enregistrer un commentaire