this is my mapping
<class name="cl.sichile.documentos.model.Documento" table="DOC_DOC" >
<id name="id" column="id">
<generator class="native"/>
</id>
<!--
<id name="id" column="ID" unsaved-value="-1">
<generator class="native"/>
<generator class="sequence">
<param name="sequence">DOCUMENT_SEQUENCE</param>
</generator>
</id>
-->
<property name="numeroDocumento" column="DOC_NUM_DOC"/>
<property name="fecha" column="DOC_FEC_ING" type="date"/>
<property name="fechaControl" column="DOC_FECHA_CONTROL" type="date"/>
</class>
i try to set de type = date and didn't work
Another thing to try ??
surrizola wrote:
Hello, i have a problem with a query like this
from doc in class model.Document
where doc.fecha = :fecha
and i set a query like this
Query q= session.getNamedQuery(.....
q.setDate("fecha",fecha)
Where fecha is 14/01/2004 and in the dataBase the column that map to this propties has the same value
The problem is that the query dosen't return any value, when it must return at least 100 rows
Can anyone help me please !!!!!!!!!!1
PD: sorry about my english