Skip to content

Instantly share code, notes, and snippets.

@solitudelad
Created June 28, 2017 12:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save solitudelad/2e2194ed270fb5e3cbdeca99197597e8 to your computer and use it in GitHub Desktop.
Save solitudelad/2e2194ed270fb5e3cbdeca99197597e8 to your computer and use it in GitHub Desktop.
Book model
package com.knoldus;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Value;
import javax.annotation.concurrent.Immutable;
@Value
@Builder
@Immutable
@JsonDeserialize
@AllArgsConstructor
public final class Book {
String isbn;
String bookName;
String authorName;
float price;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment