All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.googlecode.objectify.impl.conv.joda.JodaTimeConverters Maven / Gradle / Ivy

Go to download

*** 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()); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy