File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Groovy and the fly likes Design question using grails. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Languages » Groovy
Bookmark "Design question using grails." Watch "Design question using grails." New topic

Design question using grails.

pawan chopra
Ranch Hand

Joined: Jan 23, 2008
Posts: 415

Hi All,

I have an object which represents a phone number. User is adding phone numbers in bulk. In my service layer I am creating those number objects and saving in the Database. But there are few checks that I have to do : for example if number does not start with 700 I have to add that number successfully but I have to show a warning to user about this. Now in the service I am returning count of numbers added successfully and errors in case anything bad happen. I need a way to pass these warnings as well. Can any one suggest me good way to do this or if grails provide anything related to this?

Pawan Chopra
I agree. Here's the link:
subject: Design question using grails.
It's not a secret anymore!