001package io.ebean.config;
002
003/**
004 * Configuration for JSON features.
005 */
006public abstract class JsonConfig {
007
008  /**
009   * Defined the format used for DateTime types.
010   */
011  public enum DateTime {
012
013    /**
014     * Format as epoch millis.
015     */
016    MILLIS,
017
018    /**
019     * Format as epoch with nanos.
020     */
021    NANOS,
022
023    /**
024     * Format as ISO-8601 date format.
025     */
026    ISO8601
027  }
028
029
030  public enum Include {
031
032    /**
033     * Include all values including null and empty collections.
034     */
035    ALL,
036
037    /**
038     * Exclude null values (include empty collections).
039     */
040    NON_NULL,
041
042    /**
043     * Exclude null values and empty collections.
044     */
045    NON_EMPTY
046  }
047}