// Path: app/src/main/java/cn/daixiaodong/myapp/model/PushMessageModel.java
// @DatabaseTable(tableName = "push_message")
// public class PushMessageModel {
// 
// 
//     @DatabaseField(generatedId = true)
//     private int id;
// 
//     @DatabaseField(columnName = "message")
//     private String message;
// 
// 
//     public PushMessageModel() {
//     }
// 
// 
//     public PushMessageModel(String message) {
// 
//         this.message = message;
//     }
// 
//     public int getId() {
//         return id;
//     }
// 
//     public void setId(int id) {
//         this.id = id;
//     }
// 
//     public String getMessage() {
//         return message;
//     }
// 
//     public void setMessage(String message) {
//         this.message = message;
//     }
// }


import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import com.j256.ormlite.android.apptools.OrmLiteSqliteOpenHelper;
import com.j256.ormlite.dao.Dao;
import com.j256.ormlite.support.ConnectionSource;
import com.j256.ormlite.table.TableUtils;
import java.sql.SQLException;
import java.util.HashMap;
import java.util.Map;
import cn.daixiaodong.myapp.model.PushMessageModel;
package cn.daixiaodong.myapp.db;





/**
 * Created by daixiaodong on 15/7/21.
 */
public class DatabaseHelper extends OrmLiteSqliteOpenHelper {






    private static final String TABLE_NAME = "push_message";


    private static final String DATABASE_NAME = "data.db";

    private Map<String, Dao> mDaos = new HashMap<>();

    private DatabaseHelper(Context context, String databaseName, SQLiteDatabase.CursorFactory factory, int databaseVersion) {
        super(context, DATABASE_NAME, null, 1);
    }


    @Override
    public void onCreate(SQLiteDatabase sqLiteDatabase, ConnectionSource connectionSource) {
        try {
// Path: app/src/main/java/cn/daixiaodong/myapp/model/PushMessageModel.java
// @DatabaseTable(tableName = "push_message")
// public class PushMessageModel {
// 
// 
//     @DatabaseField(generatedId = true)
//     private int id;
// 
//     @DatabaseField(columnName = "message")
//     private String message;
// 
// 
//     public PushMessageModel() {
//     }
// 
// 
//     public PushMessageModel(String message) {
// 
//         this.message = message;
//     }
// 
//     public int getId() {
//         return id;
//     }
// 
//     public void setId(int id) {
//         this.id = id;
//     }
// 
//     public String getMessage() {
//         return message;
//     }
// 
//     public void setMessage(String message) {
//         this.message = message;
//     }
// }


// Path: app/src/main/java/cn/daixiaodong/myapp/db/DatabaseHelper.java
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import com.j256.ormlite.android.apptools.OrmLiteSqliteOpenHelper;
import com.j256.ormlite.dao.Dao;
import com.j256.ormlite.support.ConnectionSource;
import com.j256.ormlite.table.TableUtils;
import java.sql.SQLException;
import java.util.HashMap;
import java.util.Map;
import cn.daixiaodong.myapp.model.PushMessageModel;

package cn.daixiaodong.myapp.db;





/**
 * Created by daixiaodong on 15/7/21.
 */
public class DatabaseHelper extends OrmLiteSqliteOpenHelper {






    private static final String TABLE_NAME = "push_message";


    private static final String DATABASE_NAME = "data.db";

    private Map<String, Dao> mDaos = new HashMap<>();

    private DatabaseHelper(Context context, String databaseName, SQLiteDatabase.CursorFactory factory, int databaseVersion) {
        super(context, DATABASE_NAME, null, 1);
    }


    @Override
    public void onCreate(SQLiteDatabase sqLiteDatabase, ConnectionSource connectionSource) {
        try {
            TableUtils.createTable(connectionSource, PushMessageModel.class);