答复: org.apache.isis.applib.value.Date Or DateTime in JDO with postgres database

2013-05-06 Thread 张峰昌
Hi Jeroen and Dan: Thank you for your help. Joda types works well in my case. Best Regards Alain -邮件原件- 发件人: Dan Haywood [mailto:d...@haywood-associates.co.uk] 发送时间: 2013年5月6日 22:35 收件人: users 主题: Re: org.apache.isis.applib.value.Date Or DateTime in JDO with postgres database The

Re: org.apache.isis.applib.value.Date Or DateTime in JDO with postgres database

2013-05-06 Thread Dan Haywood
The bytea is a byte array, which is the default way that JDO/DN stores serializable objects. I'm guessing that the IsisDateMapping isn't configured correctly, for some reason. But, as Jeroen says, I suggest you go with the Joda types. And I've been wondering if we should have a vote on whether t

Re: org.apache.isis.applib.value.Date Or DateTime in JDO with postgres database

2013-05-06 Thread Jeroen van der Wal
Hi Alain, Looking at the IsisDateMapping it should store as a Long in in the database so I don't know why you get the bytea. In our current project we moved away from the applib Data/Time classes and now use the excellent Joda types. This is supported natively by Datanucleus. If you want to furt

org.apache.isis.applib.value.Date Or DateTime in JDO with postgres database

2013-05-06 Thread 张峰昌
Hi Dan: What’s the default data type will be used when model a filed with type org. apache.isis.applib.value.Date Or DateTime in JDO dataobject store? I have found that “bytea” will be used in Postgres Database with JDO object store.I needs date or datetime datatype in postgres databse,can yo