package com.tojc.ormlite.android.ormlitecontentprovidersample.provider;

import android.provider.BaseColumns;

import com.j256.ormlite.field.DatabaseField;
import com.tojc.ormlite.android.annotation.AdditionalAnnotation.Contract;
import com.tojc.ormlite.android.annotation.AdditionalAnnotation.DefaultContentMimeTypeVnd;
import com.tojc.ormlite.android.annotation.AdditionalAnnotation.DefaultContentUri;
import com.tojc.ormlite.android.annotation.AdditionalAnnotation.DefaultSortOrder;

/**
 * Did you know ? All annotations and parameters are optionnal ! You just need the @Contract
 * @author SNI
 */
@Contract()
// @DefaultContentUri(authority = "com.tojc.ormlite.android.ormlitecontentprovidersample", path =
// "accounts")
@DefaultContentUri()
@DefaultContentMimeTypeVnd()
public class Account {

    @DatabaseField(columnName = BaseColumns._ID, generatedId = true)
    @DefaultSortOrder
    private int id;

    @DatabaseField
    private String name;

    public Account() {
        // ORMLite needs a no-arg constructor
    }

    public Account(String name) {
        this.id = 0;
        this.name = name;
    }

    public int getId() {
        return id;
    }

    public String getName() {
        return name;
    }

}

@@ -149,16 +149,61 @@
 eField;%0A
+import com.j256.ormlite.table.DatabaseTable;%0A
 import c
@@ -653,19 +653,55 @@
 tract()%0A
-// 
+@DatabaseTable(tableName = %22accounts%22)%0A
 @Default
@@ -777,16 +777,25 @@
 ersample
+.provider
 %22, path 
@@ -799,11 +799,8 @@
 th =
-%0A//
  %22ac
@@ -827,41 +827,101 @@
 tent
-Uri()%0A@DefaultContentMimeTypeVnd(
+MimeTypeVnd(name = %22com.tojc.ormlite.android.ormlitecontentprovidersample%22, type = %22accounts%22
 )%0Apu

Repair sample. Seems messed