-->
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.  [ 1 post ] 
Author Message
 Post subject: Problem to map a class Livro
PostPosted: Fri May 23, 2008 2:12 pm 
Newbie

Joined: Thu Mar 27, 2008 12:36 pm
Posts: 2
Could anyone help me?? Give me your opnion about this mapping!!
I get this exception when I run my project

Table not found in statement [select this_.id as id0_1_, this_.titulo as titulo0_1_, this_.ano as ano0_1_, area2_.id as id4_0_, area2_.descricao as descricao4_0_ from LIVRO this_ left outer join area area2_ on this_.id=area2_.id]

public class Livro {

private int id;
private String titulo;
private int ano;
private Area area;
private Set<Autor> autores = new HashSet<Autor>();

<hibernate-mapping package="br.com.info.ffm.beans">
<class name="Livro" table="LIVRO">

<id name="id" type="int" column="id">
<generator class="native"/>
</id>

<property name="titulo" column="titulo"></property>
<property name="ano" column="ano"></property>

<one-to-one name="area" foreign-key="idArea"></one-to-one>

<set name="autores" inverse = "true">
<key column = "id"/>
<many-to-many class = "br.com.info.ffm.beans.Autor"></many-to-many>
</set>

</class>
</hibernate-mapping>

Could anyone help me??

I get this exception when I run my project:

_________________
Gilderlanio Santana de Araújo
Sistemas de Informação
Faculdades Integradas de Patos - FIP
Patos - Paraíba - Brasil


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

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.