Skip to content

Instantly share code, notes, and snippets.

@xdu
Created November 9, 2011 10:09
Show Gist options
  • Save xdu/1351027 to your computer and use it in GitHub Desktop.
Save xdu/1351027 to your computer and use it in GitHub Desktop.
jpa: inheritance primary key
@Entity
@PrimaryKeyJoinColumn(name = "EMP_PK")
class Employee extends Customer {
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment