package co.ulock.api.dao;

import java.util.List;

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

import co.ulock.api.data.Site;

public interface SiteRepository extends JpaRepository<Site, String> {
	List<Site> findByAccountId(String accountId);
}

@@ -105,16 +105,81 @@
 ository;
+%0Aimport org.springframework.transaction.annotation.Transactional;
 %0A%0Aimport
@@ -204,16 +204,31 @@
 .Site;%0A%0A
+@Transactional%0A
 public i

add transactional annotation on site controller