Re: [hibernate-dev] [HV] HV and RESTEasy integration

2013-10-14 Thread Hardy Ferentschik
On 14 Jan 2013, at 3:16 PM, Gunnar Morling wrote: > Actually I thought what you describe would already be the case. Same here, I thought that it would be the case already. --Hardy ___ hibernate-dev mailing list hibernate-dev@lists.jboss.org https:/

Re: [hibernate-dev] [HV] HV and RESTEasy integration

2013-10-14 Thread Gunnar Morling
Hi, Actually I thought what you describe would already be the case. RESTEasy has a class ResteasyViolationExceptionMapper [1] which creates HTTP responses in case of violation exceptions. I had a quick look at the same and from that I'd say the required code is basically in place already in this

[hibernate-dev] [HV] HV and RESTEasy integration

2013-10-14 Thread Emmanuel Bernard
I was once again working on the demo showing Bean Validation and its integration inside Java EE 7. When you put constraints on the method parameter of a JAX-RS call, you get a nice rendering of the error on the client side (basically the HTTP entity returns a JSON representation of the errors). Bu