/*
 *  Licensed to the Apache Software Foundation (ASF) under one
 *  or more contributor license agreements.   See the NOTICE file
 *  distributed with this work for additional information
 *  regarding copyright ownership.   The ASF licenses this file
 *  to you 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 org.apache.isis.testdomain.conf;

import org.springframework.context.annotation. ComponentScan;
import org.springframework.context.annotation. Configuration;
import org.springframework.context.annotation. Import;
import org.springframework.context.annotation. PropertySource;
import org.springframework.context.annotation. PropertySources;

import org.apache.isis.core.config.presets. IsisPresets;
import org.apache.isis.core.runtimeservices. IsisModuleCoreRuntimeServices;
import org.apache.isis.persistence.jdo.datanucleus5.IsisModuleJdoDataNucleus5;
import org.apache.isis.security.bypass. IsisModuleSecurityBypass;
import org.apache.isis.testdomain.jdo. JdoTestDomainModule;
import org.apache.isis.testdomain.model.stereotypes. MyService;
import org.apache.isis.testdomain.util.kv. KVStoreForTesting;
import org.apache.isis.testing.fixtures.applib. IsisModuleTestingFixturesApplib;

@Configuration
@Import({
    KVStoreForTesting.class,
    MyService.class, // testing injection into entities 
    IsisModuleCoreRuntimeServices.class,
    IsisModuleSecurityBypass.class,
    IsisModuleJdoDataNucleus5.class,
    IsisModuleTestingFixturesApplib.class
})
@ComponentScan(
        basePackageClasses= {               
                JdoTestDomainModule.class
        })
@PropertySources({
    @PropertySource("classpath:/org/apache/isis/testdomain/jdo/isis-persistence.properties"),
    @PropertySource(IsisPresets. H2InMemory_withUniqueSchema),
    @PropertySource(IsisPresets. NoTranslations),
})
public class Configuration_usingJdo {
    

}