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
|