com.foo.server.services.db.exception.InvalidObjectException: org.hibernate.TransientObjectException: object references an unsaved transient instance - save the transient instance before flushing: com.foo.server.model.house.conditioning.Duct

hibernate.org | 8 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Hibernate Community • View topic - TransientObjectException with `cascade="all, delete-orphan"`

    hibernate.org | 8 months ago
    com.foo.server.services.db.exception.InvalidObjectException: org.hibernate.TransientObjectException: object references an unsaved transient instance - save the transient instance before flushing: com.foo.server.model.house.conditioning.Duct

    Root Cause Analysis

    1. com.foo.server.services.db.exception.InvalidObjectException

      org.hibernate.TransientObjectException: object references an unsaved transient instance - save the transient instance before flushing: com.foo.server.model.house.conditioning.Duct

      at com.foo.server.services.db.Transaction.commit()
    2. com.foo.server
      TestHousePlan_JDO.testAddDistributionSystemSave
      1. com.foo.server.services.db.Transaction.commit(Transaction.java:33)
      2. com.foo.server.services.db.service.PersistenceManager.commitTransactionIfOpen(PersistenceManager.java:83)
      3. com.foo.server.services.db.service.DataService.save(DataService.java:230)
      4. com.foo.server.services.db.service.DataService.save(DataService.java:188)
      5. com.foo.server.model.house.TestHousePlan_JDO.testAddDistributionSystemSave(TestHousePlan_JDO.java:55)
      5 frames