Guest User

Untitled

a guest
May 21st, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. @Entity(tableName = "team_player_join",
  2. primaryKeys = { "teamId", "playerId" },
  3. foreignKeys = {
  4. ForeignKey(entity = Team.class,
  5. parentColumns = "id",
  6. childColumns = "teamId"),
  7. ForeignKey(entity = Player.class,
  8. parentColumns = "id",
  9. childColumns = "playerId")
  10. })
  11. class TeamPlayerJoin(val teamId: Long, val playerId: Long)
Add Comment
Please, Sign In to add comment