thanks for your feed back so far, i just try to understand whats causes the problem, and what im doing wrong
is it nessary to use;
Quote:
CREATE TABLE C021 (
id int PRIMARY KEY,
name varchar(50),
u_id int,
FOREIGN KEY (u_id) REFERENCES p021 (id)
);
when i compair just two tables,
in my case, im compairing walFrom and/or walTo in EXTERNAL_SALES with wal_number in WMA_REGISTER,
These are the two XML files that i got for the two tables,
<?xml version="1.0" ?>
<!DOCTYPE hibernate-mapping (View Source for full doctype...)>
- <hibernate-mapping default-cascade="none" default-access="property" auto-import="true">
- <class name="com.wf.core.ExternalSales" table="EXTERNAL_SALES" lazy="false" mutable="true" polymorphism="implicit" dynamic-update="false" dynamic-insert="false" batch-size="1" select-before-update="false" optimistic-lock="version">
- <id name="id" type="long" unsaved-value="null">
<generator class="native" />
</id>
<property name="provider" type="string" not-null="false" unique="false" update="true" insert="true" />
- <many-to-one name="fromRegion" class="com.wf.core.Region" not-null="false" unique="false" outer-join="auto" update="true" insert="true">
<column name="from_region" />
</many-to-one>
- <many-to-one name="toRegion" class="com.wf.core.Region" not-null="false" unique="false" outer-join="auto" update="true" insert="true">
<column name="to_region" />
</many-to-one>
- <property name="walFrom" type="string" not-null="false" unique="false" update="true" insert="true">
<column name="wal_from" />
</property>
- <property name="walTo" type="string" not-null="false" unique="false" update="true" insert="true">
<column name="wal_to" />
</property>
<property name="startIrrigationSeason" type="string" not-null="false" unique="false" update="true" insert="true" />
<property name="endIrrigationSeason" type="string" not-null="false" unique="false" update="true" insert="true" />
<property name="price" type="long" not-null="true" unique="false" update="true" insert="true" />
<property name="quantity" type="double" not-null="true" unique="false" update="true" insert="true" />
- <property name="saleDate" type="calendar" not-null="false" unique="false" update="true" insert="true">
<column name="saledate" />
</property>
<property name="sale" type="boolean" not-null="false" unique="false" update="true" insert="true" />
- <!--
property name="sellingType" type="boolean">
<column name="sellingtype"/>
</property
-->
</class>
</hibernate-mapping>
<?xml version="1.0" ?>
<!DOCTYPE hibernate-mapping (View Source for full doctype...)>
- <hibernate-mapping default-cascade="none" default-access="property" auto-import="true">
- <class name="com.wf.core.WmaRegister" table="WMA_REGISTER" lazy="false" mutable="true" polymorphism="implicit" dynamic-update="false" dynamic-insert="false" batch-size="1" select-before-update="false" optimistic-lock="version">
- <id name="id" type="long" unsaved-value="null">
<generator class="native" />
</id>
- <property name="walNumber" type="string" not-null="false" unique="false" update="true" insert="true">
<column name="wal_number" />
</property>
<property name="category" type="string" not-null="false" unique="false" update="true" insert="true" />
- <property name="dipnrNumber" type="string" not-null="false" unique="false" update="true" insert="true">
<column name="dipnr_number" />
</property>
<property name="status" type="string" not-null="false" unique="false" update="true" insert="true" />
- <property name="waterSource" type="string" not-null="false" unique="false" update="true" insert="true">
<column name="water_source" />
</property>
- <property name="tenureType" type="string" not-null="false" unique="false" update="true" insert="true">
<column name="tenure_type" />
</property>
- <property name="managementZone" type="string" not-null="false" unique="false" update="true" insert="true">
<column name="management_zone" />
</property>
- <property name="shareComponents" type="double" not-null="false" unique="false" update="true" insert="true">
<column name="share_components" />
</property>
- <property name="nwaNumber" type="string" not-null="false" unique="false" update="true" insert="true">
<column name="n_w_a_number" />
</property>
- <property name="licenceHolders" type="string" not-null="false" unique="false" update="true" insert="true">
<column name="licence_holders" />
</property>
<property name="updated" type="calendar" not-null="false" unique="false" update="true" insert="true" />
</class>
</hibernate-mapping>