Beginner |
![Beginner Beginner](./images/ranks/beginner.gif) |
Joined: Tue May 11, 2004 12:08 pm Posts: 38 Location: Davis,CA,USA
|
ok I read the parts and test this but i become an stack overflow exception again. But all files look good...
bin.hbm.xml
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 2.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd">
<hibernate-mapping>
<class
name="de.mpg.mpimp.golm.binbase.bellerophon.model.impl.hibernate.experiment.sample.bin.Bin"
table="`gwBIN`"
dynamic-update="false"
dynamic-insert="false"
>
<id
name="id"
column="`bin_id`"
type="int"
>
<generator class="native">
</generator>
</id>
<property
name="apexSn"
type="double"
update="false"
insert="false"
column="`apex_sn`"
/>
<property
name="purity"
type="double"
update="false"
insert="false"
column="`purity`"
/>
<property
name="retentionIndex"
type="int"
update="false"
insert="false"
column="`retention_index`"
/>
<property
name="sampleId"
type="int"
update="false"
insert="false"
column="`sample_id`"
/>
<property
name="spectraId"
type="int"
update="false"
insert="false"
column="`spectra_id`"
/>
<property
name="uniqueMass"
type="int"
update="false"
insert="false"
column="`uniquemass`"
/>
<many-to-one
name="sample"
class="de.mpg.mpimp.golm.binbase.bellerophon.model.impl.hibernate.experiment.sample.Sample"
cascade="none"
outer-join="auto"
update="true"
insert="true"
column="`sample_id`"
/>
<property
name="apexSpec"
type="java.sql.Clob"
update="false"
insert="false"
column="`apex`"
/>
<property
name="massSpec"
type="java.sql.Clob"
update="false"
insert="false"
column="`spectra`"
/>
<set
name="anotatedSpectra"
lazy="true"
inverse="true"
cascade="none"
sort="unsorted"
>
<key
column="`bin_id`"
/>
<one-to-many
class="de.mpg.mpimp.golm.binbase.bellerophon.model.impl.hibernate.experiment.sample.spectra.Spectra"
/>
</set>
<property
name="export"
type="java.lang.String"
update="false"
insert="false"
column="`export`"
/>
<property
name="generateQuantMass"
type="java.lang.String"
update="false"
insert="false"
column="`generatequantmass`"
/>
<property
name="minusRange"
type="int"
update="true"
insert="false"
column="`minus`"
/>
<property
name="newBin"
type="java.lang.String"
update="true"
insert="false"
column="`new`"
/>
<property
name="plusRange"
type="int"
update="true"
insert="false"
column="`plus`"
/>
<property
name="quantMass"
type="int"
update="true"
insert="false"
column="`quantmass`"
/>
<property
name="standard"
type="java.lang.String"
update="true"
insert="false"
column="`standard`"
/>
<!--
To add non XDoclet property mappings, create a file named
hibernate-properties-Bin.xml
containing the additional properties and place it in your merge dir.
-->
</class>
</hibernate-mapping>
spectra.hbm.xml
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 2.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd">
<hibernate-mapping>
<class
name="de.mpg.mpimp.golm.binbase.bellerophon.model.impl.hibernate.experiment.sample.spectra.Spectra"
table="`SPECTRA`"
dynamic-update="false"
dynamic-insert="false"
>
<id
name="id"
column="`spectra_id`"
type="int"
>
<generator class="native">
</generator>
</id>
<property
name="apexSn"
type="double"
update="false"
insert="false"
column="`apex_sn`"
/>
<property
name="purity"
type="double"
update="false"
insert="false"
column="`purity`"
/>
<property
name="retentionIndex"
type="int"
update="false"
insert="false"
column="`retention_index`"
/>
<property
name="sampleId"
type="int"
update="false"
insert="false"
column="`sample_id`"
/>
<property
name="similarity"
type="double"
update="false"
insert="false"
column="`simialrity`"
/>
<property
name="uniqueMass"
type="int"
update="false"
insert="false"
column="`uniquemass`"
/>
<many-to-one
name="sample"
class="de.mpg.mpimp.golm.binbase.bellerophon.model.impl.hibernate.experiment.sample.Sample"
cascade="none"
outer-join="auto"
update="true"
insert="true"
column="`sample_id`"
/>
<many-to-one
name="bin"
class="de.mpg.mpimp.golm.binbase.bellerophon.model.impl.hibernate.experiment.sample.bin.Bin"
cascade="none"
outer-join="auto"
update="false"
insert="false"
column="`bin_id`"
/>
<property
name="apexSpec"
type="java.sql.Clob"
update="false"
insert="false"
column="`apex`"
/>
<property
name="massSpec"
type="java.sql.Clob"
update="false"
insert="false"
column="`spectra`"
/>
<!--
To add non XDoclet property mappings, create a file named
hibernate-properties-Spectra.xml
containing the additional properties and place it in your merge dir.
-->
</class>
</hibernate-mapping>
I can't see any failures and wonder why I ever become a stack overflow exception when I acces the paren object (Bin) from the child (spectra)
|
|