Skip to content

Instantly share code, notes, and snippets.

@ctataryn
Created January 24, 2012 19:56
Show Gist options
  • Save ctataryn/1672199 to your computer and use it in GitHub Desktop.
Save ctataryn/1672199 to your computer and use it in GitHub Desktop.
Aggregate Entities
@Entity(name="Player")
public class PlayerImpl implements Player {
@Id
@Column(name="PlayerId")
private Integer id = -1;
private PersonName name = new PersonNameImpl();
.
.
.
}
@Entity(name="Player")
public class PersonNameImpl implements PersonName {
@Column(name="FirstName")
private String firstName;
@Column(name="LastName")
private String lastName;
.
.
.
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment