Hi, I am using hibernate in my project. I found a problem when I use Integer attributes in my entities. In the code generation, the FinderMethods for this type of attribute is created with the following text:
/** * * * Finds Anomalia object(s) using a query. * */ public static java.util.Collection findByStatus (net.sf.hibernate.Session sess, java.lang.Integer status) throws net.sf.hibernate.HibernateException { net.sf.hibernate.Query q = sess.createQuery("from c in class com.growtec.cev.domain.data.Anomalia as c where c.status = ?0"); q.setInteger (0, status); return q.list(); } In my model the FinderMethod findByStatus have the follow signature: public Collection findByStatus( java.lang.Integer status ) The problem is the method setInteger of the net.sf.hibernate.Query have the follow signature: public Query setInteger(int position, int val) If I change de model signature to: public Collection findByStatus( int status ) The code generated by cartdridge is /** * * * Finds Anomalia object(s) using a query. * */ public static java.util.Collection findByStatus (net.sf.hibernate.Session sess, int status) throws net.sf.hibernate.HibernateException { net.sf.hibernate.Query q = sess.createQuery("from c in class com.growtec.cev.domain.data.Anomalia as c where c.status = ?0"); q.setint (0, status); return q.list(); } .. and the method setint not exist in the net.sf.hibernate.Query interface. Is an template error or in my model? Thanks Jose Carlos JCMOJ [EMAIL PROTECTED] Quer internet Grátis com qualidade e muito mais serviços? Escolha o Caminho Mais Curto! Ubbi free! baixe agora o discador - http://free.ubbi.com.br/ ------------------------------------------------------- This SF.Net email is sponsored by: SourceForge.net Broadband Sign-up now for SourceForge Broadband and get the fastest 6.0/768 connection for only $19.95/mo for the first 3 months! http://ads.osdn.com/?ad_id%62&alloc_ida84&op=click _______________________________________________ Andromda-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/andromda-devel