package com.c09.cinpockema.cinema.entities.repositories;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.repository.CrudRepository;

import com.c09.cinpockema.cinema.entities.Cinema;
import com.c09.cinpockema.cinema.entities.CinemaComment;

public interface CinemaRepository extends JpaRepository<Cinema, Long> {
	List<Cinema> findByCityId(int cityId);
}
package com.c09.cinpockema.cinema.entities.repositories;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.repository.CrudRepository;

import com.c09.cinpockema.cinema.entities.Cinema;
import com.c09.cinpockema.cinema.entities.CinemaComment;

public interface CinemaRepository extends JpaRepository<Cinema, Long> {
	List<Cinema> findByCityId(String cityId);
}

修改city id类型