Created
January 6, 2012 18:02
-
-
Save krams915/1571677 to your computer and use it in GitHub Desktop.
This file contains hidden or 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.krams.domain; | |
| import javax.persistence.Entity; | |
| import javax.persistence.Id; | |
| import javax.persistence.OneToOne; | |
| @Entity(name="role") | |
| public class Role { | |
| @Id | |
| private Long id; | |
| @OneToOne | |
| private User user; | |
| private Integer role; | |
| ...getters/setters | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment