-->
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: could not find a setter....
PostPosted: Tue Aug 24, 2004 4:00 am 
Newbie

Joined: Wed Jun 02, 2004 6:14 am
Posts: 6
Hibernate version: 2.o

Mapping documents:
[code]
<hibernate-mapping
package="de.vit.Bullenkatalog.beans">

<class name="Tier" table="DATA_TIER">
<id name="id" type="java.lang.Long">
<column name="TIER_ID" sql-type="number" not-null="true" />
<generator class="native"/>
</id>
<discriminator column="SEX_ID" />
<property name="lom" type="string">
<column name="TIER_LOM_LANG" sql-type="VARCHAR(20)" />
</property>

<property name="name" type="string">
<column name="TIERNAME" sql-type="VARCHAR(30)" />
</property>

<property name="rasse" type="int">
<column name="RASSE_ID" sql-type="NUMBER" />
</property>

<!--<property name="sex" type="int">
<column name="SEX_ID" sql-type="NUMBER" />
</property>-->

<property name="gebdat" type="java.util.Date">
<column name="GEBDAT" sql-type="DATE" />
</property>

<!-- <many-to-one name="vater" class="Tier" column="VATER_ID" />
<many-to-one name="mutter" class="Tier" column="MUTTER_ID"/>-->

<many-to-one name="besitzer" class="Besitzer" column="TIER_ID" update="false" insert="false" not-null="false" />
<many-to-one name="zuechter" class="Zuechter" column="TIER_ID" update="false" insert="false" not-null="false"/>
<subclass name="Bulle" discriminator-value="1">
<property name="top" type="string">
<column name="TOP_BULLE" sql-type="VARCHAR(1)" />
</property>
<one-to-one name="zw" class="ZW" />

</subclass>
<subclass name="Kuh" discriminator-value="2">

</subclass>
</class>

<class name="ZW" table="DATA_ZW">
<id name="id" type="java.lang.Long">
<column name="TIER_ID" sql-type="number" not-null="true" />
<generator class="native"/>
</id>

<component name="zuchtwerte" class="Zuchtwerte" >
<property name="rze" type="java.lang.Integer">
<column name="RZE" sql-type="NUMBER" />
</property>
<property name="rzg" type="java.lang.Integer">
<column name="GES_ZW" sql-type="NUMBER" />
</property>
<property name="rzm" type="java.lang.Integer">
<column name="RZM" sql-type="NUMBER" />
</property>
<property name="rzn" type="java.lang.Integer">
<column name="RZ_ND" sql-type="NUMBER" />
</property>
<property name="rzs" type="java.lang.Integer">
<column name="RZS" sql-type="NUMBER" />
</property>
<property name="rzz" type="java.lang.Integer">
<column name="RZZ" sql-type="NUMBER" />
</property>
</component>
<component name="milchleistung" class="Milchleistung" >
<property name="betriebe" type="java.lang.Integer">
<column name="HERDEN" sql-type="NUMBER" />
</property>
<property name="eiwei


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 24, 2004 4:07 am 
Hibernate Team
Hibernate Team

Joined: Thu Dec 18, 2003 9:55 am
Posts: 1977
Location: France
Code:
public void setTiertID(Long _id){
        tierID=_id;
    }


ugh... ;))))

_________________
Anthony,
Get value thanks to your skills: http://www.redhat.com/certification


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.