Search in sources :

Example 1 with TaskToScheduleRepo

use of io.crnk.test.mock.repository.TaskToScheduleRepo in project crnk-framework by crnk-project.

the class MetaModuleProducer method createRepositoryModule.

@Produces
@ApplicationScoped
public Module createRepositoryModule() {
    SimpleModule module = new SimpleModule("mock");
    module.addRepository(new ScheduleRepositoryImpl());
    module.addRepository(new ProjectRepository());
    module.addRepository(new TaskRepository());
    module.addRepository(new ProjectToTaskRepository());
    module.addRepository(new ScheduleToTaskRepository());
    module.addRepository(new TaskSubtypeRepository());
    module.addRepository(new TaskToProjectRepository());
    module.addRepository(new TaskToScheduleRepo());
    return module;
}
Also used : ScheduleRepositoryImpl(io.crnk.test.mock.repository.ScheduleRepositoryImpl) ProjectRepository(io.crnk.test.mock.repository.ProjectRepository) TaskToProjectRepository(io.crnk.test.mock.repository.TaskToProjectRepository) TaskSubtypeRepository(io.crnk.test.mock.repository.TaskSubtypeRepository) ProjectToTaskRepository(io.crnk.test.mock.repository.ProjectToTaskRepository) TaskToProjectRepository(io.crnk.test.mock.repository.TaskToProjectRepository) TaskToScheduleRepo(io.crnk.test.mock.repository.TaskToScheduleRepo) TaskRepository(io.crnk.test.mock.repository.TaskRepository) ProjectToTaskRepository(io.crnk.test.mock.repository.ProjectToTaskRepository) ScheduleToTaskRepository(io.crnk.test.mock.repository.ScheduleToTaskRepository) ScheduleToTaskRepository(io.crnk.test.mock.repository.ScheduleToTaskRepository) SimpleModule(io.crnk.core.module.SimpleModule) Produces(javax.enterprise.inject.Produces) ApplicationScoped(javax.enterprise.context.ApplicationScoped)

Aggregations

SimpleModule (io.crnk.core.module.SimpleModule)1 ProjectRepository (io.crnk.test.mock.repository.ProjectRepository)1 ProjectToTaskRepository (io.crnk.test.mock.repository.ProjectToTaskRepository)1 ScheduleRepositoryImpl (io.crnk.test.mock.repository.ScheduleRepositoryImpl)1 ScheduleToTaskRepository (io.crnk.test.mock.repository.ScheduleToTaskRepository)1 TaskRepository (io.crnk.test.mock.repository.TaskRepository)1 TaskSubtypeRepository (io.crnk.test.mock.repository.TaskSubtypeRepository)1 TaskToProjectRepository (io.crnk.test.mock.repository.TaskToProjectRepository)1 TaskToScheduleRepo (io.crnk.test.mock.repository.TaskToScheduleRepo)1 ApplicationScoped (javax.enterprise.context.ApplicationScoped)1 Produces (javax.enterprise.inject.Produces)1