// Path: campus/src/lecho/app/campus/dao/PlaceFaculty.java
// public class PlaceFaculty {
// 
//     private Long id;
//     private Long facultyId;
//     private Long placeId;
// 
//     public PlaceFaculty() {
//     }
// 
//     public PlaceFaculty(Long id) {
//         this.id = id;
//     }
// 
//     public PlaceFaculty(Long id, Long facultyId, Long placeId) {
//         this.id = id;
//         this.facultyId = facultyId;
//         this.placeId = placeId;
//     }
// 
//     public Long getId() {
//         return id;
//     }
// 
//     public void setId(Long id) {
//         this.id = id;
//     }
// 
//     public Long getFacultyId() {
//         return facultyId;
//     }
// 
//     public void setFacultyId(Long facultyId) {
//         this.facultyId = facultyId;
//     }
// 
//     public Long getPlaceId() {
//         return placeId;
//     }
// 
//     public void setPlaceId(Long placeId) {
//         this.placeId = placeId;
//     }
// 
// }


import java.util.List;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteStatement;
import de.greenrobot.dao.AbstractDao;
import de.greenrobot.dao.Property;
import de.greenrobot.dao.internal.DaoConfig;
import de.greenrobot.dao.query.Query;
import de.greenrobot.dao.query.QueryBuilder;
import lecho.app.campus.dao.PlaceFaculty;
package lecho.app.campus.dao;




// THIS CODE IS GENERATED BY greenDAO, DO NOT EDIT.
/** 
 * DAO for table PLACE_FACULTY.
*/
public class PlaceFacultyDao extends AbstractDao<PlaceFaculty, Long> {

    public static final String TABLENAME = "PLACE_FACULTY";

    /**
     * Properties of entity PlaceFaculty.<br/>
     * Can be used for QueryBuilder and for referencing column names.
    */
    public static class Properties {
        public final static Property Id = new Property(0, Long.class, "id", true, "_id");
        public final static Property FacultyId = new Property(1, Long.class, "facultyId", false, "FACULTY_ID");
        public final static Property PlaceId = new Property(2, Long.class, "placeId", false, "PLACE_ID");
    };

    private Query<PlaceFaculty> faculty_PlaceFacultyListQuery;
    private Query<PlaceFaculty> place_PlaceFacultyListQuery;

    public PlaceFacultyDao(DaoConfig config) {
        super(config);
    }
    
    public PlaceFacultyDao(DaoConfig config, DaoSession daoSession) {
        super(config, daoSession);
    }

    /** Creates the underlying database table. */
    public static void createTable(SQLiteDatabase db, boolean ifNotExists) {
        String constraint = ifNotExists? "IF NOT EXISTS ": "";
        db.execSQL("CREATE TABLE " + constraint + "'PLACE_FACULTY' (" + //
                "'_id' INTEGER PRIMARY KEY AUTOINCREMENT ," + // 0: id
                "'FACULTY_ID' INTEGER," + // 1: facultyId
                "'PLACE_ID' INTEGER);"); // 2: placeId
    }

    /** Drops the underlying database table. */
    public static void dropTable(SQLiteDatabase db, boolean ifExists) {
        String sql = "DROP TABLE " + (ifExists ? "IF EXISTS " : "") + "'PLACE_FACULTY'";
        db.execSQL(sql);
    }

    /** @inheritdoc */
    @Override
    protected void bindValues(SQLiteStatement stmt, PlaceFaculty entity) {
        stmt.clearBindings();
 
        Long id = entity.getId();
        if (id != null) {
            stmt.bindLong(1, id);
        }
 
        Long facultyId = entity.getFacultyId();
        if (facultyId != null) {
            stmt.bindLong(2, facultyId);
        }
 
        Long placeId = entity.getPlaceId();
        if (placeId != null) {
            stmt.bindLong(3, placeId);
        }
    }

    /** @inheritdoc */
    @Override
    public Long readKey(Cursor cursor, int offset) {
        return cursor.isNull(offset + 0) ? null : cursor.getLong(offset + 0);
    }    

    /** @inheritdoc */
    @Override
    public PlaceFaculty readEntity(Cursor cursor, int offset) {
// Path: campus/src/lecho/app/campus/dao/PlaceFaculty.java
// public class PlaceFaculty {
// 
//     private Long id;
//     private Long facultyId;
//     private Long placeId;
// 
//     public PlaceFaculty() {
//     }
// 
//     public PlaceFaculty(Long id) {
//         this.id = id;
//     }
// 
//     public PlaceFaculty(Long id, Long facultyId, Long placeId) {
//         this.id = id;
//         this.facultyId = facultyId;
//         this.placeId = placeId;
//     }
// 
//     public Long getId() {
//         return id;
//     }
// 
//     public void setId(Long id) {
//         this.id = id;
//     }
// 
//     public Long getFacultyId() {
//         return facultyId;
//     }
// 
//     public void setFacultyId(Long facultyId) {
//         this.facultyId = facultyId;
//     }
// 
//     public Long getPlaceId() {
//         return placeId;
//     }
// 
//     public void setPlaceId(Long placeId) {
//         this.placeId = placeId;
//     }
// 
// }


// Path: campus/src/lecho/app/campus/dao/PlaceFacultyDao.java
import java.util.List;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteStatement;
import de.greenrobot.dao.AbstractDao;
import de.greenrobot.dao.Property;
import de.greenrobot.dao.internal.DaoConfig;
import de.greenrobot.dao.query.Query;
import de.greenrobot.dao.query.QueryBuilder;
import lecho.app.campus.dao.PlaceFaculty;

package lecho.app.campus.dao;




// THIS CODE IS GENERATED BY greenDAO, DO NOT EDIT.
/** 
 * DAO for table PLACE_FACULTY.
*/
public class PlaceFacultyDao extends AbstractDao<PlaceFaculty, Long> {

    public static final String TABLENAME = "PLACE_FACULTY";

    /**
     * Properties of entity PlaceFaculty.<br/>
     * Can be used for QueryBuilder and for referencing column names.
    */
    public static class Properties {
        public final static Property Id = new Property(0, Long.class, "id", true, "_id");
        public final static Property FacultyId = new Property(1, Long.class, "facultyId", false, "FACULTY_ID");
        public final static Property PlaceId = new Property(2, Long.class, "placeId", false, "PLACE_ID");
    };

    private Query<PlaceFaculty> faculty_PlaceFacultyListQuery;
    private Query<PlaceFaculty> place_PlaceFacultyListQuery;

    public PlaceFacultyDao(DaoConfig config) {
        super(config);
    }
    
    public PlaceFacultyDao(DaoConfig config, DaoSession daoSession) {
        super(config, daoSession);
    }

    /** Creates the underlying database table. */
    public static void createTable(SQLiteDatabase db, boolean ifNotExists) {
        String constraint = ifNotExists? "IF NOT EXISTS ": "";
        db.execSQL("CREATE TABLE " + constraint + "'PLACE_FACULTY' (" + //
                "'_id' INTEGER PRIMARY KEY AUTOINCREMENT ," + // 0: id
                "'FACULTY_ID' INTEGER," + // 1: facultyId
                "'PLACE_ID' INTEGER);"); // 2: placeId
    }

    /** Drops the underlying database table. */
    public static void dropTable(SQLiteDatabase db, boolean ifExists) {
        String sql = "DROP TABLE " + (ifExists ? "IF EXISTS " : "") + "'PLACE_FACULTY'";
        db.execSQL(sql);
    }

    /** @inheritdoc */
    @Override
    protected void bindValues(SQLiteStatement stmt, PlaceFaculty entity) {
        stmt.clearBindings();
 
        Long id = entity.getId();
        if (id != null) {
            stmt.bindLong(1, id);
        }
 
        Long facultyId = entity.getFacultyId();
        if (facultyId != null) {
            stmt.bindLong(2, facultyId);
        }
 
        Long placeId = entity.getPlaceId();
        if (placeId != null) {
            stmt.bindLong(3, placeId);
        }
    }

    /** @inheritdoc */
    @Override
    public Long readKey(Cursor cursor, int offset) {
        return cursor.isNull(offset + 0) ? null : cursor.getLong(offset + 0);
    }    

    /** @inheritdoc */
    @Override
    public PlaceFaculty readEntity(Cursor cursor, int offset) {
        PlaceFaculty entity = new PlaceFaculty( //