Created
November 15, 2013 21:36
-
-
Save eevans/7492060 to your computer and use it in GitHub Desktop.
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
import java.util.UUID; | |
import com.opennms.lucidity.annoations.*; | |
@Entity | |
@Table(name="users") | |
public class User { | |
@Id | |
@Column(name="user_id") | |
UUID userId; | |
@Index(type = INVERTED) | |
@Column(name="email_address") | |
String emailAddress; | |
@Column(name="given_name") | |
String givenName; | |
@Column | |
String surname; | |
@Column | |
Date birthday; | |
@OneToMany | |
Collection<Address> addresses; | |
// Setters, getters, etc | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment