-->
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: "<AST>:0:0: unexpected end of subtree" on a
PostPosted: Tue Jan 15, 2008 7:19 am 
Newbie

Joined: Tue Jan 15, 2008 7:12 am
Posts: 2
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!


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.