• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Spring Rest and JPA Repository

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All

Am facing a strange issue, I am designing a online application as part of learning. It has a customer entity and an address entity. Customer has a set of addresses entity inside (one to many) and address has one reference to customer (many to one).
Now when a customer registers, he passes his details as well as the set of addresses via json through a rest service. I need to save customer and the list of addresses using CRUD repository. For this am using save and saveall.

But am not seeing any where how I can catch any errors from save and save all so that I can return a valid message back to the customer.


regards
Achuth
 
Rancher
Posts: 662
10
Android Tomcat Server Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Achuth, can you post more code here?  
reply
    Bookmark Topic Watch Topic
  • New Topic