Created
September 9, 2012 07:09
-
-
Save gomzie/3683107 to your computer and use it in GitHub Desktop.
Role.java
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 org.spring.mongo; | |
import org.springframework.data.annotation.Id; | |
import org.springframework.data.mongodb.core.mapping.Document; | |
@Document | |
public class Role { | |
@Id | |
private String id; | |
public String getId() { | |
return id; | |
} | |
public void setId(String id) { | |
this.id = id; | |
} | |
public Integer getRole() { | |
return role; | |
} | |
public void setRole(Integer role) { | |
this.role = role; | |
} | |
private Integer role; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment