// Path: app/src/main/java/com/vsahin/moneycim/Model/Entity/SpendingGroup.java
// @Entity(tableName = "spending_group")
// public class SpendingGroup {
// 
//     @PrimaryKey(autoGenerate = true)
//     @ColumnInfo(name = "group_id")
//     private int groupId;
// 
//     @ColumnInfo(name = "group_name")
//     private String groupName;
// 
//     public int getGroupId() {
//         return groupId;
//     }
// 
//     public void setGroupId(int groupId) {
//         this.groupId = groupId;
//     }
// 
//     public String getGroupName() {
//         return groupName;
//     }
// 
//     public void setGroupName(String groupName) {
//         this.groupName = groupName;
//     }
// }


import androidx.lifecycle.LiveData;
import androidx.room.Dao;
import androidx.room.Insert;
import androidx.room.Query;
import com.vsahin.moneycim.Model.Entity.SpendingGroup;
import java.util.List;

package com.vsahin.moneycim.Model.Dao;




/**
 * Created by Volkan Şahin on 18.08.2017.
 */

@Dao
public interface SpendingGroupDao {

    @Query("SELECT * FROM SPENDING_GROUP")
    LiveData<List<SpendingGroup>> getAllSpendingGroups();

    @Insert

// Path: app/src/main/java/com/vsahin/moneycim/Model/Entity/SpendingGroup.java
// @Entity(tableName = "spending_group")
// public class SpendingGroup {
// 
//     @PrimaryKey(autoGenerate = true)
//     @ColumnInfo(name = "group_id")
//     private int groupId;
// 
//     @ColumnInfo(name = "group_name")
//     private String groupName;
// 
//     public int getGroupId() {
//         return groupId;
//     }
// 
//     public void setGroupId(int groupId) {
//         this.groupId = groupId;
//     }
// 
//     public String getGroupName() {
//         return groupName;
//     }
// 
//     public void setGroupName(String groupName) {
//         this.groupName = groupName;
//     }
// }


// Path: app/src/main/java/com/vsahin/moneycim/Model/Dao/SpendingGroupDao.java
import androidx.lifecycle.LiveData;
import androidx.room.Dao;
import androidx.room.Insert;
import androidx.room.Query;
import com.vsahin.moneycim.Model.Entity.SpendingGroup;
import java.util.List;

package com.vsahin.moneycim.Model.Dao;




/**
 * Created by Volkan Şahin on 18.08.2017.
 */

@Dao
public interface SpendingGroupDao {

    @Query("SELECT * FROM SPENDING_GROUP")
    LiveData<List<SpendingGroup>> getAllSpendingGroups();

    @Insert

    void addSpendingGroup(SpendingGroup spendingGroup);
