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.

Many thanks,

Reply via email to