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!