package com.izouma.nineth.repo;


import com.izouma.nineth.domain.SpaceObjectsInfo;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface SpaceObjectsInfoRepo extends JpaRepository<SpaceObjectsInfo, Long> {

    SpaceObjectsInfo findBySpaceId(Long spaceId);

    List<SpaceObjectsInfo> findAllByUserId(Long userId);

    List<SpaceObjectsInfo> findAllByUserIdAndIdNot(Long userId, Long id);
}
