Created
September 16, 2017 17:16
-
-
Save nikhilbansal97/40e8e448f44a7c691cd9cd78010a1918 to your computer and use it in GitHub Desktop.
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
package com.example.nikhil.schematiclibrary.provider; | |
import net.simonvt.schematic.annotation.AutoIncrement; | |
import net.simonvt.schematic.annotation.ConflictResolutionType; | |
import net.simonvt.schematic.annotation.DataType; | |
import net.simonvt.schematic.annotation.NotNull; | |
import net.simonvt.schematic.annotation.PrimaryKey; | |
/** | |
* This class defines the structure of the table. | |
*/ | |
public class ContractClass { | |
@DataType(DataType.Type.INTEGER) | |
@PrimaryKey(onConflict = ConflictResolutionType.REPLACE) | |
@AutoIncrement | |
public static final String COLUMN_ID = "_id"; | |
@DataType(DataType.Type.TEXT) | |
@NotNull | |
public static final String COLUMN_TEXT = "text"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment