on-internet
← Community

hibernate not-null property references a null or transient value:

Stack Overflow ·

This problem appears randomly. Program has worked well for over a month and today it crashed. While adding a new order the user can choose a company from the dropdown list. Then he can save new order to the database. It works most of the times even now when a reloaded the app. The error code is as follows: javax.persistence.PersistenceException: org.hibernate.PropertyValueException: not-null property references a null or transient value: mapped.Order.company (odwzorowania.Zlecenie.firma) Using Hibernate, JSF 2.1, MySql 5.5, javax.persistence.* here is the code (names are translated from polish

Comments

Sign in or sign up to comment and upvote.

No comments yet.