Last active
March 10, 2016 13:46
-
-
Save brunokrebs/87ce1d8dc362b7ad923c 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 br.com.brunokrebs.model; | |
import javax.persistence.Entity; | |
import javax.persistence.GeneratedValue; | |
import javax.persistence.Id; | |
@Entity | |
public class User { | |
@Id | |
@GeneratedValue | |
private long id; | |
// ... other instance fields and constructors ... | |
public long getId() { | |
return id; | |
} | |
// ... other getters ... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment