Skip to content

Instantly share code, notes, and snippets.

@ereshzealous
Created December 27, 2019 09:42
Show Gist options
  • Save ereshzealous/0e9fe83ca63fded1e2e7575572fb99f2 to your computer and use it in GitHub Desktop.
Save ereshzealous/0e9fe83ca63fded1e2e7575572fb99f2 to your computer and use it in GitHub Desktop.
package com.eresh.spring.persistence.entity;
import lombok.Data;
import org.springframework.data.mongodb.core.index.TextIndexed;
import org.springframework.data.mongodb.core.mapping.Document;
/**
* Created By Gorantla, Eresh on 12/Dec/2019
**/
@Data
@Document(collection = "author")
public class Author extends BaseEntity {
@TextIndexed
private String firstName;
@TextIndexed
private String lastName;
private String city;
private String gender;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment