I use oracle,it has a date column,so I mapping following code
Code:
<hibernate-mapping>
<class name="test.model" table="testTable">
<property name="createDate" type="java.util.Date">
<column name="createdate" not-null="false" />
</property>
</class>
</hibernate-mapping>
Then I extract data by using following code:
Code:
String sql="from test.model";
List files=this.getHibernateTemplate().find(sql);
I find createDate value contains date+time,I want to extract createDate which only contains 'yyyy-mm-dd' and no time!
I don't know how to do it! Anybody could tell me how to do it? Please give me detail code.
Thanks!