Created
October 24, 2017 12:20
-
-
Save khannedy/5b377dd6ba02664debe365d9f8076ac3 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 = "categories") | |
public class Category { | |
@Id | |
private String id; | |
private String name; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment