Created
December 22, 2014 13:39
-
-
Save elaPa/800a2074d8556ed19ae5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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