Skip to content

Instantly share code, notes, and snippets.

@nikhilbansal97
Created September 16, 2017 17:16
Show Gist options
  • Save nikhilbansal97/40e8e448f44a7c691cd9cd78010a1918 to your computer and use it in GitHub Desktop.
Save nikhilbansal97/40e8e448f44a7c691cd9cd78010a1918 to your computer and use it in GitHub Desktop.
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