• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Knute Snortum
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Piet Souris
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

Spring Rest and JPA Repository

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • 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
 
Ranch Foreman
Posts: 376
4
Android Tomcat Server Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Achuth, can you post more code here?  
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!