Quarkus restassured test fails with "org.hibernate.TransientPropertyValueException: object references an unsaved transient instance"

Solution Unverified - Updated -

Issue

  • Quarkus restassured test fails with "org.hibernate.TransientPropertyValueException: object references an unsaved transient instance":
Caused by: org.hibernate.TransientPropertyValueException: object references an unsaved transient instance - save the transient instance before flushing : com.exampleMyContact.type -> com.example.entity.ContactType

Environment

  • Red Hat build of Quarkus
  • Quarkus Dev Services

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content