1

In grails controller I prefer using:

def abc = new ClassName(field1:params?.firstRequestParameter,
                         field2:params?.secondRequestParameter)
if(!abc.save()){
   abc.errors.each{ it.println }
}

for saving an object in the database.

What is its equivalent methodology for saving an object in spring mvc & Hibernate?

Paritosh
  • 85
  • 8
  • Please refer this link https://stackoverflow.com/questions/5862680/whats-the-advantage-of-persist-vs-save-in-hibernate – hrdkisback Jul 29 '17 at 07:25
  • I've edited my question. why is it still showing duplicate and why I am also not allowed to ask more question? – Paritosh Jul 29 '17 at 19:38

0 Answers0