package net.davidvoid.thor.lightning.service;

import java.util.List;

import net.davidvoid.thor.lightning.data.access.GroupStore;
import net.davidvoid.thor.lightning.data.access.UserStore;
import net.davidvoid.thor.lightning.entity.Group;
import net.davidvoid.thor.lightning.util.SessionUser;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;


@Component
public class FeedGroupService {
    @Autowired
    GroupStore store = null;
    @Autowired
    UserStore userStore = null;
    
    public List<Group> getAllGroups() {
        long uid = SessionUser.get().getId();
        //return store.getGroups(uid);
        return null;
    }
    
    public Group add(Group group) {
        store.add(group);
        return group;
    }
    
    public Group update(Group group) {
        store.update(group);
        return group;
    }

    public void delete(long group_id) {
    }
    
}

@@ -610,20 +610,22 @@
         
-long
+Object
  uid = S

use object not long as id