Skip to content

Instantly share code, notes, and snippets.

@eevans
Created November 15, 2013 21:36
Show Gist options
  • Save eevans/7492060 to your computer and use it in GitHub Desktop.
Save eevans/7492060 to your computer and use it in GitHub Desktop.
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