Last active
July 23, 2017 16:32
-
-
Save chyrta/190aef67fc416ee96532e717e5db7ff2 to your computer and use it in GitHub Desktop.
TokenEntity
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.j256.ormlite.field.DatabaseField; | |
import com.j256.ormlite.table.DatabaseTable; | |
@DatabaseTable(tableName = "token") | |
public final class TokenEntity { | |
@DatabaseField(id = true) public String id; | |
@DatabaseField public String apiToken; | |
public TokenEntity() { | |
// required no-arg constructor | |
} | |
public TokenEntity(String apiToken) { | |
this.apiToken = apiToken; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment