Greetings everyone! 
I have a problem with hibernate when I try this method... it seems I have a
query sintax mistake.. but I kind find what it is...
public List getBeneficiarioByActividad(Long actividadId){
        return getHibernateTemplate().find("from beneficiario_actividad where
actividad_id="+actividadId);
    }

The beneficiario_actividad is a table created by hibernate with this tag...
Beneficiario has a many-to-many relationship with Actividad... here it is
the hibernate tag
@hibernate.set table="beneficiario_actividad" cascade="save-update"
lazy="false"
@hibernate.collection-key column="beneficiario_id"
@hibernate.collection-many-to-many class="mx.edu.um.dif.model.Actividad"
column="actividad_id"

Is there somethin I'm not doing right?? What am I missin? When I try to add
activities to a beneficiario it does save them... and I don't have a problem
with that, so I really have no idea...
beneficiario_actividad is not mapped [from beneficiario_actividad where
actividad_id=1]; nested exception is
org.hibernate.hql.ast.QuerySyntaxException: beneficiario_actividad is not
mapped [from beneficiario_actividad where actividad_id=1]

Any comments?? 
Thanx
-- 
View this message in context: 
http://www.nabble.com/Hibernate-exception-tf3350715s2369.html#a9317329
Sent from the AppFuse - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to