Skip to content

Instantly share code, notes, and snippets.

@khannedy
Created October 24, 2017 12:21
Show Gist options
  • Save khannedy/eca1e01731a2ac3622c84e33234f7c5a to your computer and use it in GitHub Desktop.
Save khannedy/eca1e01731a2ac3622c84e33234f7c5a to your computer and use it in GitHub Desktop.
package com.idspring.crudreactive.entity;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
/**
* @author Eko Kurniawan Khannedy
* @since 24/10/17
*/
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Document(collection = "products")
public class Product {
@Id
private String id;
private String name;
private String categoryId;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment