com.googlecode.objectify.impl.conv.joda.JodaTimeConverters Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of objectify Show documentation
Show all versions of objectify Show documentation
*** THIS VERSION UPLOADED FOR USE WITH CEDAR-COMMON, TO AVOID DEPENDENCIES ON GOOGLE CODE-BASED MAVEN REPOSITORIES. *** The simplest convenient interface to the Google App Engine datastore
The newest version!
package com.googlecode.objectify.impl.conv.joda;
import com.googlecode.objectify.impl.conv.Conversions;
/**
* A convenient static method that adds all the joda-time related converters to your factory's conversions.
* We can't enable the joda-time converters automatically or it would force everyone to add joda-time.jar
* whether they use it or not. To enable, call this:
*
* {@code JodaTimeConverters.add(ObjectifyService.factory().getConversions());}
*/
public class JodaTimeConverters
{
public static void add(Conversions conv) {
conv.add(new ReadableInstantConverter());
conv.add(new LocalDateConverter());
conv.add(new DateTimeZoneConverter());
}
}