i'm using hibernate2.1, winXP Pro, MySql 4.0.12.
i read this from command line:
Hibernate: insert into detalhes (estrategia, id) values (?, ?)
but it should also insert (turma_id) !
my cfg.xml file:
Code:
<?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 = "relatorio.Turma" table = "turmas">
<id name = "id" column = "id" unsaved-value = "null">
<generator class = "increment" />
</id>
<property name = "turma" column = "turma" />
<property name = "ano" column = "ano" />
<property name = "masculinos" column = "masculinos" />
<property name = "femininos" column = "femininos" />
<set name = "detalhe" inverse = "true" lazy = "true" cascade = "all">
<key column = "turma_id" />
<one-to-many class = "relatorio.Detalhe" />
</set>
</class>
</hibernate-mapping>
Can someone pls help me?
thanks in advance