Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Entity(tableName = "team_player_join",
- primaryKeys = { "teamId", "playerId" },
- foreignKeys = {
- ForeignKey(entity = Team.class,
- parentColumns = "id",
- childColumns = "teamId"),
- ForeignKey(entity = Player.class,
- parentColumns = "id",
- childColumns = "playerId")
- })
- class TeamPlayerJoin(val teamId: Long, val playerId: Long)
Add Comment
Please, Sign In to add comment