-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Unexpected persistence exception
PostPosted: Wed Aug 11, 2010 12:26 pm 
Newbie

Joined: Wed Aug 11, 2010 12:22 pm
Posts: 1
I fetch a master row X from a database. This row has many detail rows.

Due to user input from a web page, a value in X becomes invalid due to a not-null constraint.

I loop over the details, performing processing on each one.

One of the detail rows executes a Hibernate 'select' query that has nothing to do with the error in X. I get this exception:

Quote:
javax.persistence.PersistenceException: org.hibernate.PropertyValueException: not-null property references a null or transient value: com.mycompany.missioncriticalevaluation.model.X.endTime




Now, endTime is indeed broken. That's not wrong.

I don't understand why this exception is being thrown. I have not persisted, saved, flushed, etc any rows at all. The rows being returned by said query do not refer to X at all.

I'm stumped. Any ideas?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.