cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Huss <johnth...@gmail.com>
Subject Re: Reverse engineering and dates
Date Wed, 22 Jun 2016 16:19:45 GMT
If this is a one-time task, just open up the cayenne-*.map.xml file in a
text editor and do a Find and Replace All of "java.util.Date" with
"org.joda.time.DateTime".


On Wed, Jun 22, 2016 at 11:06 AM Tony Giaccone <tgiaccone@gmail.com> wrote:

> When reverse engineering a database, the java.util.Date class is used in
> all the classes that reference timestamps. Is there a way to get this to
> default to another class?  I'd like to use Joda's org.joda.time.DateTime
> instead.
>
> Is there an easy way to swap this out when the classes get generated?
>
>
>
> Tony
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message