// Path: src/main/java/com/jipasoft/repository/h2/BaseRepositoryImpl.java
// public interface BaseRepositoryImpl {
// 
// }
// 
// Path: src/main/java/com/jipasoft/util/Profiles.java
// public class Profiles {
// 	public static final String H2 = "h2";
// 	public static final String POSTGRES = "postgres";
// 	public static final String MYSQL = "mysql";
// 	public static final String MONGO = "mongo";
// 	public static final String EMAIL = "email";
// 	public static final String HEROKU = "heroku";
// 	public static final String ASPECT = "aspect";
// }


import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Profile;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
import com.jipasoft.repository.h2.BaseRepositoryImpl;
import com.jipasoft.util.Profiles;
/*
* Copyright 2016, Julius Krah
* by the @authors tag. See the LICENCE in the distribution for a
* full listing of individual contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.jipasoft.config;



/**
 * Configuration specific for {@code h2} profile. This configuration uses Spring
 * Data JPA. The underlying datastore is H2 embedded database for it's JPA
 * access
 * 
 * @author Julius Krah
 *
 */
@Configuration
@Profile({ Profiles.H2, Profiles.HEROKU })
// Path: src/main/java/com/jipasoft/repository/h2/BaseRepositoryImpl.java
// public interface BaseRepositoryImpl {
// 
// }
// 
// Path: src/main/java/com/jipasoft/util/Profiles.java
// public class Profiles {
// 	public static final String H2 = "h2";
// 	public static final String POSTGRES = "postgres";
// 	public static final String MYSQL = "mysql";
// 	public static final String MONGO = "mongo";
// 	public static final String EMAIL = "email";
// 	public static final String HEROKU = "heroku";
// 	public static final String ASPECT = "aspect";
// }


// Path: src/main/java/com/jipasoft/config/H2Config.java
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Profile;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
import com.jipasoft.repository.h2.BaseRepositoryImpl;
import com.jipasoft.util.Profiles;

/*
* Copyright 2016, Julius Krah
* by the @authors tag. See the LICENCE in the distribution for a
* full listing of individual contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.jipasoft.config;



/**
 * Configuration specific for {@code h2} profile. This configuration uses Spring
 * Data JPA. The underlying datastore is H2 embedded database for it's JPA
 * access
 * 
 * @author Julius Krah
 *
 */
@Configuration
@Profile({ Profiles.H2, Profiles.HEROKU })
@EnableJpaRepositories(basePackageClasses = BaseRepositoryImpl.class)