On Tue, 12 Feb 2002, Dain Sundstrom wrote:

> This is for anyone who knows Postgres out there,
>
> There is a patch at sf that suggest adding the following mapping:
>
> <mapping>
>    <java-type>java.util.Date</java-type>
>    <jdbc-type>TIMESTAMP</jdbc-type>
>    <sql-type>TIMESTAMP</sql-type>
> </mapping>
>
> There is currently no mapping for java.util.Date, but there is a mapping
> for java.sql.Date, which is:
>
> <mapping>
>     <java-type>java.sql.Date</java-type>
>     <jdbc-type>DATE</jdbc-type>
>     <sql-type>DATE</sql-type>
> </mapping>

I prefer the latter.  My reasoning, is that if java.util.Date is mapped to
TIMESTAMP, then how does someone make a DATE in the database?

They could use java.sql.Timestamp to accomplish that.

This is what I have done for my debian packages.


_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to