cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sergey Beryozkin <sberyoz...@gmail.com>
Subject Re: Hibernate + CXF integration problem
Date Tue, 29 Jan 2013 15:10:28 GMT
Hi
On 29/01/13 14:42, Esteban Wagner wrote:
> Hi,
>
> I am adding to entities to the DB using a Rest method.
>
> When I call this method through CXF runtime I get an hibernate exception:
>
> *org.hibernate.TransientPropertyValueException: Not-null property
> references a transient value - transient instance must be saved before
> current operation*
>
>
> Translating this means : Before persisting entity 2 I need to persist
> entity 1. (Which the code its actually doing this, persisting one before
> the other).
>
> 2) When calling this method without going through the CXF runtime, calling
> it straight to the bean method. I dont get any errors and the entities are
> persisted in the DB.
>
> 3) How can I troubleshoot this? I ve been a couple of hours looking for a
> solution to this.
> 4) It seems like an integration problem with CXF and Hibernate.
>
CXF itself is not aware of Hibernate. Does the custom filter you've 
implemented facilitates the integration with Hibernate somehow ?
Other than that, please confirm CXF provides all the info this bean expects

Sergey
> Many thanks,

Mime
View raw message