Skip to content

Instantly share code, notes, and snippets.

@krams915
Created January 20, 2012 07:14
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save krams915/1645944 to your computer and use it in GitHub Desktop.
package org.krams.domain;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.DBRef;
import org.springframework.data.mongodb.core.mapping.Document;
@Document
public class User {
@Id
private String id;
private String firstName;
private String lastName;
private String username;
private String password;
@DBRef
private Role role;
...getters/setters
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment