package fr.treeptik.cloudunit.dao;

/**
 * Created by stagiaire on 29/07/16.
 */
public interface ScriptingDAO {
}

@@ -1,115 +1,1600 @@
-package fr.treeptik.cloudunit.dao;%0A%0A/**%0A * Created by stagiaire on 29/07/16.%0A */%0Apublic interface ScriptingDAO %7B
+/*%0A * LICENCE : CloudUnit is available under the GNU Affero General Public License : https://gnu.org/licenses/agpl.html%0A * but CloudUnit is licensed too under a standard commercial license.%0A * Please contact our sales team if you would like to discuss the specifics of our Enterprise license.%0A * If you are not sure whether the AGPL is right for you,%0A * you can always test our software under the AGPL and inspect the source code before you contact us%0A * about purchasing a commercial license.%0A *%0A * LEGAL TERMS : %22CloudUnit%22 is a registered trademark of Treeptik and can't be used to endorse%0A * or promote products derived from this project without prior written permission from Treeptik.%0A * Products or services derived from this software may not be called %22CloudUnit%22%0A * nor may %22Treeptik%22 or similar confusing terms appear in their names without prior written permission.%0A * For any questions, contact us : contact@treeptik.fr%0A */%0A%0Apackage fr.treeptik.cloudunit.dao;%0A%0Aimport fr.treeptik.cloudunit.model.Script;%0Aimport org.springframework.dao.DataAccessException;%0Aimport org.springframework.data.jpa.repository.JpaRepository;%0Aimport org.springframework.data.jpa.repository.Query;%0Aimport org.springframework.data.repository.query.Param;%0A%0Aimport java.util.List;%0A%0Apublic interface ScriptingDAO extends JpaRepository%3CScript, Integer%3E %7B%0A    @Query(%22Select s from Script s where s.title=:title%22)%0A    Script findByTitle(@Param(%22title%22) String title)%0A            throws DataAccessException;%0A%0A    @Query(%22select s from Script s%22)%0A    List%3CScript%3E findAllScripts()%0A            throws DataAccessException;
 %0A%7D%0A

Add ScriptingDAO methods