Skip to content

Instantly share code, notes, and snippets.

@gomzie
Created September 9, 2012 07:09
Show Gist options
  • Save gomzie/3683107 to your computer and use it in GitHub Desktop.
Save gomzie/3683107 to your computer and use it in GitHub Desktop.
Role.java
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