Last active
July 29, 2017 09:40
-
-
Save jeevan-patil/1ce08c53a00cb4c970ff72e7dba31feb to your computer and use it in GitHub Desktop.
Project Entity
This file contains 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 xyz.jeevan.api.domain; | |
import org.springframework.data.annotation.Id; | |
import org.springframework.data.mongodb.core.mapping.Document; | |
/** | |
* Projects mongo document. | |
*/ | |
@Document(collection = "projects") | |
public class Project { | |
@Id | |
private String id; | |
private String name; | |
private String ownerEmail; | |
public String getId() { | |
return id; | |
} | |
public void setId(String id) { | |
this.id = id; | |
} | |
public String getName() { | |
return name; | |
} | |
public void setName(String name) { | |
this.name = name; | |
} | |
public String getOwnerEmail() { | |
return ownerEmail; | |
} | |
public void setOwnerEmail(String ownerEmail) { | |
this.ownerEmail = ownerEmail; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment