// Path: app/src/main/java/org/secuso/privacyfriendlyweather/database/data/CityToWatch.java
// @SuppressWarnings({RoomWarnings.PRIMARY_KEY_FROM_EMBEDDED_IS_DROPPED,
//         RoomWarnings.MISSING_INDEX_ON_FOREIGN_KEY_CHILD, RoomWarnings.INDEX_FROM_EMBEDDED_ENTITY_IS_DROPPED})
// 
// /**
//  * This class is the database model for the cities to watch. 'Cities to watch' means the locations
//  * for which a user would like to see the weather for. This includes those locations that will be
//  * deleted after app close (non-persistent locations).
//  */
// @Entity(tableName = "CITIES_TO_WATCH", foreignKeys = {
//         @ForeignKey(entity = City.class,
//                 parentColumns = {"cities_id"},
//                 childColumns = {"city_id"},
//                 onDelete = ForeignKey.CASCADE)})
// public class CityToWatch {
// 
//     @PrimaryKey(autoGenerate = true) @ColumnInfo(name = "cities_to_watch_id") private int id = 0;
//     @ColumnInfo(name = "city_id") private int cityId;
//     @ColumnInfo(name = "rank") private int rank;
//     @Embedded private City city;
// 
//     public CityToWatch() {
//         this.city = new City();
//     }
// 
//     @Ignore
//     public CityToWatch(int rank, String countryCode, int id, int cityId, String cityName, float longitude, float latitude) {
//         this.rank = rank;
//         this.id = id;
//         this.cityId = cityId;
//         this.city = new City();
//         this.city.setCityName(cityName);
//         this.city.setCityId(cityId);
//         this.city.setCountryCode(countryCode);
//         this.city.setLongitude(longitude);
//         this.city.setLatitude(latitude);
//     }
// 
//     public City getCity() {
//         return city;
//     }
// 
//     public void setCity(City city) {
//         this.city = city;
//     }
// 
//     public int getId() {
//         return id;
//     }
// 
//     public void setId(int id) {
//         this.id = id;
//     }
// 
//     public int getCityId() {
//         return cityId;
//     }
// 
//     public void setCityId(int cityId) {
//         this.cityId = cityId;
//     }
// 
//     public String getCityName() {
//         return city.getCityName();
//     }
// 
//     public void setCityName(String cityName) {
//         this.city.setCityName(cityName);
//     }
// 
//     public String getCountryCode() {
//         return city.getCountryCode();
//     }
// 
//     public void setCountryCode(String countryCode) {
//         this.city.setCountryCode(countryCode);
//     }
// 
//     public int getRank() {
//         return rank;
//     }
// 
//     public void setRank(int rank) {
//         this.rank = rank;
//     }
// 
//     public float getLongitude() {
//         return this.city.getLongitude();
//     }
// 
//     public float getLatitude() {
//         return this.city.getLatitude();
//     }
// 
//     public void setLongitude(float lon) {
//         this.city.setLongitude(lon);
//     }
// 
//     public void setLatitude(float lat) {
//         this.city.setLatitude(lat);
//     }
// 
// }


import androidx.room.Dao;
import androidx.room.Delete;
import androidx.room.Insert;
import androidx.room.Query;
import androidx.room.Update;
import org.secuso.privacyfriendlyweather.database.data.CityToWatch;
import java.util.List;
package org.secuso.privacyfriendlyweather.database.dao;




/**
 * @author Christopher Beckmann
 */
@Dao
public interface CityToWatchDao {
    @Query("SELECT * FROM CITIES_TO_WATCH")
// Path: app/src/main/java/org/secuso/privacyfriendlyweather/database/data/CityToWatch.java
// @SuppressWarnings({RoomWarnings.PRIMARY_KEY_FROM_EMBEDDED_IS_DROPPED,
//         RoomWarnings.MISSING_INDEX_ON_FOREIGN_KEY_CHILD, RoomWarnings.INDEX_FROM_EMBEDDED_ENTITY_IS_DROPPED})
// 
// /**
//  * This class is the database model for the cities to watch. 'Cities to watch' means the locations
//  * for which a user would like to see the weather for. This includes those locations that will be
//  * deleted after app close (non-persistent locations).
//  */
// @Entity(tableName = "CITIES_TO_WATCH", foreignKeys = {
//         @ForeignKey(entity = City.class,
//                 parentColumns = {"cities_id"},
//                 childColumns = {"city_id"},
//                 onDelete = ForeignKey.CASCADE)})
// public class CityToWatch {
// 
//     @PrimaryKey(autoGenerate = true) @ColumnInfo(name = "cities_to_watch_id") private int id = 0;
//     @ColumnInfo(name = "city_id") private int cityId;
//     @ColumnInfo(name = "rank") private int rank;
//     @Embedded private City city;
// 
//     public CityToWatch() {
//         this.city = new City();
//     }
// 
//     @Ignore
//     public CityToWatch(int rank, String countryCode, int id, int cityId, String cityName, float longitude, float latitude) {
//         this.rank = rank;
//         this.id = id;
//         this.cityId = cityId;
//         this.city = new City();
//         this.city.setCityName(cityName);
//         this.city.setCityId(cityId);
//         this.city.setCountryCode(countryCode);
//         this.city.setLongitude(longitude);
//         this.city.setLatitude(latitude);
//     }
// 
//     public City getCity() {
//         return city;
//     }
// 
//     public void setCity(City city) {
//         this.city = city;
//     }
// 
//     public int getId() {
//         return id;
//     }
// 
//     public void setId(int id) {
//         this.id = id;
//     }
// 
//     public int getCityId() {
//         return cityId;
//     }
// 
//     public void setCityId(int cityId) {
//         this.cityId = cityId;
//     }
// 
//     public String getCityName() {
//         return city.getCityName();
//     }
// 
//     public void setCityName(String cityName) {
//         this.city.setCityName(cityName);
//     }
// 
//     public String getCountryCode() {
//         return city.getCountryCode();
//     }
// 
//     public void setCountryCode(String countryCode) {
//         this.city.setCountryCode(countryCode);
//     }
// 
//     public int getRank() {
//         return rank;
//     }
// 
//     public void setRank(int rank) {
//         this.rank = rank;
//     }
// 
//     public float getLongitude() {
//         return this.city.getLongitude();
//     }
// 
//     public float getLatitude() {
//         return this.city.getLatitude();
//     }
// 
//     public void setLongitude(float lon) {
//         this.city.setLongitude(lon);
//     }
// 
//     public void setLatitude(float lat) {
//         this.city.setLatitude(lat);
//     }
// 
// }


// Path: app/src/main/java/org/secuso/privacyfriendlyweather/database/dao/CityToWatchDao.java
import androidx.room.Dao;
import androidx.room.Delete;
import androidx.room.Insert;
import androidx.room.Query;
import androidx.room.Update;
import org.secuso.privacyfriendlyweather.database.data.CityToWatch;
import java.util.List;

package org.secuso.privacyfriendlyweather.database.dao;




/**
 * @author Christopher Beckmann
 */
@Dao
public interface CityToWatchDao {
    @Query("SELECT * FROM CITIES_TO_WATCH")
    List<CityToWatch> getAll();