Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
Hibernate version: 3.0
Full stack trace of any exception that occurs:
0 ERROR [http-8080-Processor25] org.hibernate.hql.PARSER - illegal syntax near collection: id
4 ERROR [http-8080-Processor25] org.hibernate.hql.PARSER - <AST>:0:0: unexpected end of subtree
Name and version of the database you are using:
MySql
Hi guys,
I get the error when I mapping one set field, this is the map:
Code:
<set name="esporte" >
<key column="CO_SEQ_CLIENTE"/>
<one-to-many class="com.mcp.dld.crm.pojo.EsporteCliente" />
</set>
the map of class EsporteCliente is this:
Code:
<hibernate-mapping package="com.mcp.dld.crm.pojo">
<class name="EsporteCliente" table="rl_esporte_cliente">
<meta attribute="sync-DAO">false</meta>
<composite-id name="id" class="EsporteClienteId">
<key-many-to-one name="coSeqCliente" class="Cliente" column="CO_SEQ_CLIENTE"/>
<key-many-to-one name="coSeqEsporte" class="Esporte" column="CO_SEQ_ESPORTE"/>
</composite-id>
<property name="dtaCadastro" type="java.util.Date">
<column name="DTA_CADASTRO" length="19" />
</property>
<property name="noCadastro" type="java.lang.String">
<column name="NO_CADASTRO" length="60" not-null="true" />
</property>
</class>
</hibernate-mapping>
so, when I try to execute one HQL using the field esporte, I get the error,
any idea?
thanks and sorry for the bad english!