Created
October 24, 2017 12:21
-
-
Save khannedy/eca1e01731a2ac3622c84e33234f7c5a to your computer and use it in GitHub Desktop.
This file contains hidden or 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.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