Skip to content

Instantly share code, notes, and snippets.

@khannedy
Created October 24, 2017 12:20
Show Gist options
  • Save khannedy/5b377dd6ba02664debe365d9f8076ac3 to your computer and use it in GitHub Desktop.
Save khannedy/5b377dd6ba02664debe365d9f8076ac3 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 = "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