-->
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.  [ 3 posts ] 
Author Message
 Post subject: Problem Urgent
PostPosted: Fri Feb 06, 2004 7:06 am 
Beginner
Beginner

Joined: Thu Feb 05, 2004 9:09 am
Posts: 27
look this mapping

<hibernate-mapping>
<class name="br.com.agendanet.negocio.Pessoa" table="TB_PESSOA">
<id name="id" column="CD_PESSOA" type="string">
<generator class="uuid.hex" />
</id>

<set name="eventos" table="TB_EVENTOS" lazy="true" cascade="all">
<key column="CD_PESSOA"/>
<one-to-many class="br.com.agendanet.negocio.Eventos"/>
</set>
</class>

<class name="br.com.agendanet.negocio.Eventos" table="TB_EVENTOS">
<id name="id" column="CD_EVENTOS" type="string">
<generator class="uuid.hex" />
</id>

<many-to-one name="usuario" column="CD_PESSOA" class="br.com.agendanet.negocio.Usuario"/>

<property name="descricao" column="TX_DESCRICAO" type="string"/>
</class>
</hibernate-mapping>

Problem happend when I recoved data, collection set start eternaly selects and dont stop any more.
What can I do?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 06, 2004 7:38 am 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
show more infos, code. i suspect a messed up getter


Top
 Profile  
 
 Post subject: Hi
PostPosted: Fri Feb 06, 2004 7:42 am 
Regular
Regular

Joined: Wed Nov 26, 2003 6:22 am
Posts: 76
Location: Stockholm
Shouldn't it be

Code:
<class name="br.com.agendanet.negocio.Eventos" table="TB_EVENTOS">
<id name="id" column="CD_EVENTOS" type="string">
<generator class="uuid.hex" />
</id>

<many-to-one name="usuario" column="CD_PESSOA" class="br.com.agendanet.negocio.Pessoa>

<property name="descricao" column="TX_DESCRICAO" type="string"/>
</class>



?

Sincerely,

/F


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.