Skip to content

Instantly share code, notes, and snippets.

@elaPa
Created December 22, 2014 13:39
Show Gist options
  • Save elaPa/800a2074d8556ed19ae5 to your computer and use it in GitHub Desktop.
Save elaPa/800a2074d8556ed19ae5 to your computer and use it in GitHub Desktop.
package com.aistemos.models;
import com.aistemos.models.json.ImmutablesJson;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import org.immutables.value.Jackson;
import org.immutables.value.Json;
import org.immutables.value.Value;
import javax.annotation.Nonnull;
/**
* @author ela.pawelczyk@aistemos.com
*/
@Value.Immutable
@Json.Marshaled
@Jackson.Mapped
@Json.Import({ ImmutablesJson.class })
@JsonSerialize(as = ImmutableSimple.class)
@JsonDeserialize(as = ImmutableSimple.class)
public abstract class Simple {
@Nonnull
public abstract String name();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment