-->
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.  [ 2 posts ] 
Author Message
 Post subject: a not null error!
PostPosted: Sat Apr 24, 2004 10:40 pm 
Regular
Regular

Joined: Tue Dec 30, 2003 2:35 am
Posts: 85
the hole code run ok last night
but today ,it tells the error:

alter table RKXX add constraint FK266AF926E709 foreign key (Rkxh) references RKXX_XH
create sequence RKXX_XH_RKXH_SEQ
10:26:48,865 INFO SchemaExport:160 - schema export complete
10:26:48,875 INFO DriverManagerConnectionProvider:137 - cleaning up connection pool: jdbc:oracle:oci8:@SFHC_TEST_192.168.3.35
10:26:49,115 INFO DriverManagerConnectionProvider:137 - cleaning up connection pool: jdbc:oracle:oci8:@SFHC_TEST_192.168.3.35
Hibernate: select RKXX_XH_RKXH_SEQ.nextval from dual
net.sf.hibernate.PropertyValueException: not-null property references a null or transient value: com.RepairSFHC.SFHCText.v_Rssj
at net.sf.hibernate.impl.SessionImpl.checkNullability(SessionImpl.java:1211)
at net.sf.hibernate.impl.SessionImpl.doSave(SessionImpl.java:873)

the hbm.xml file in my project is :
Code:
<property column="Rksj" name="v_Rksj" not-null="true" type="calendar">   <column name="Rksj" not-null="true" sql-type="date"/>
</property>


the code in java is:
Code:
objText.setv_Rksj(java.util.Calendar.getInstance());


hibernate 2.1.1

thanks a lot!


Top
 Profile  
 
 Post subject:
PostPosted: Sun Apr 25, 2004 2:57 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
wo much context, no hope we can help

_________________
Emmanuel


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

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.