I'm getting the following error:
Caused by: org.hibernate.PropertyValueException: not-null property references a
null or transient value:
org.bethanyefree.data.conference.BreakoutSessionRegistration.registration
| at
org.hibernate.engine.Nullability.checkNullability(Nullability.java:72)
| at
org.hibernate.event.def.AbstractSaveEventListener.performSaveOrReplicate(AbstractSaveEventListener.java:264)
| at
org.hibernate.event.def.AbstractSaveEventListener.performSave(AbstractSaveEventListener.java:166)
| at
org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:113)
| at
org.hibernate.event.def.DefaultPersistEventListener.entityIsTransient(DefaultPersistEventListener.java:131)
| at
org.hibernate.event.def.DefaultPersistEventListener.onPersist(DefaultPersistEventListener.java:87)
| at
org.hibernate.impl.SessionImpl.firePersistOnFlush(SessionImpl.java:643)
|
This occurs after the following method is called:
| @Name("confRegister")
| @Interceptors(SeamInterceptor.class)
| @Stateful
| @Scope(ScopeType.CONVERSATION)
| @Intercept(InterceptionType.ALWAYS)
| @TransactionAttribute(TransactionAttributeType.NOT_SUPPORTED)
| public class ConferenceRegistrationAction
| implements ConferenceRegistration, Serializable {
| ...
| @Valid
| private Registration registration;
| ...
| @End(ifOutcome={"saved"})
| @TransactionAttribute(TransactionAttributeType.REQUIRED)
| @IfInvalid(outcome=Outcome.REDISPLAY)
| public String save()
| {
| entityManager.merge(this.registration);
| return "saved";
| }
| ...
|
How is it possible that the a validation error is coming through? If the new
hibernate-annotations is being used (I hope it is), bug #208 makes sure that
recursive validations are checked on collections (which is what I have in the
registration class).
Thanks,
-Andrew
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3938972#3938972
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3938972
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user