Skip to content

Commit

Permalink
Merge pull request #91 from georgleber/feat/remove-workflow
Browse files Browse the repository at this point in the history
remove workflow reference
  • Loading branch information
otaviojava authored Jul 12, 2023
2 parents a5fac7d + 8c5e663 commit 3c2f240
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
import org.eclipse.jnosql.mapping.Converters;
import org.eclipse.jnosql.mapping.document.DocumentEntityConverter;
import org.eclipse.jnosql.mapping.document.DocumentEventPersistManager;
import org.eclipse.jnosql.mapping.document.DocumentWorkflow;
import static java.util.Objects.requireNonNull;
import java.util.stream.Collectors;
import java.util.stream.Stream;
Expand All @@ -45,8 +44,6 @@ public class DefaultCriteriaDocumentTemplate extends AbstractDocumentTemplate im

private DocumentEntityConverter converter;

private DocumentWorkflow workflow;

private EntitiesMetadata entities;

private Converters converters;
Expand All @@ -56,13 +53,11 @@ public class DefaultCriteriaDocumentTemplate extends AbstractDocumentTemplate im
public DefaultCriteriaDocumentTemplate(
DocumentManager manager,
DocumentEntityConverter converter,
DocumentWorkflow workflow,
EntitiesMetadata entities,
Converters converters,
DocumentEventPersistManager persistManager) {
this.manager = manager;
this.converter = converter;
this.workflow = workflow;
this.entities = entities;
this.converters = converters;
this.persistManager = persistManager;
Expand Down Expand Up @@ -113,11 +108,6 @@ protected DocumentManager getManager() {
return manager;
}

@Override
protected DocumentWorkflow getWorkflow() {
return workflow;
}

@Override
protected DocumentEventPersistManager getEventManager() {
return persistManager;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
import jakarta.inject.Inject;
import org.eclipse.jnosql.communication.document.DocumentManager;
import org.eclipse.jnosql.mapping.Converters;
import org.eclipse.jnosql.mapping.document.DocumentWorkflow;
import org.eclipse.jnosql.mapping.criteria.api.CriteriaDocumentTemplate;
import org.eclipse.jnosql.mapping.criteria.api.CriteriaDocumentTemplateProducer;
import org.eclipse.jnosql.mapping.reflection.EntitiesMetadata;
Expand All @@ -30,13 +29,10 @@ public class DefaultCriteriaDocumentTemplateProducer implements CriteriaDocument

@Inject
private DocumentEntityConverter converter;

@Inject
private DocumentWorkflow workflow;


@Inject
private EntitiesMetadata entities;

@Inject
private Converters converters;

Expand All @@ -48,7 +44,6 @@ public CriteriaDocumentTemplate get(DocumentManager dm) {
return new DefaultCriteriaDocumentTemplate(
dm,
converter,
workflow,
entities,
converters,
persistManager
Expand Down
2 changes: 1 addition & 1 deletion jnosql-mapping-validation/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

<parent>
<groupId>org.eclipse.jnosql.mapping</groupId>
<artifactId>jnosql-mapping-parent</artifactId>
<artifactId>jnosql-mapping-extensions</artifactId>
<version>1.0.1-SNAPSHOT</version>
</parent>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import jakarta.validation.ConstraintViolation;
import jakarta.validation.ConstraintViolationException;
import org.eclipse.jnosql.mapping.Convert;
import org.eclipse.jnosql.mapping.column.ColumnWorkflow;
import org.eclipse.jnosql.mapping.column.ColumnEntityConverter;
import org.eclipse.jnosql.mapping.column.spi.ColumnExtension;
import org.eclipse.jnosql.mapping.reflection.EntityMetadataExtension;
import org.jboss.weld.junit5.auto.AddExtensions;
Expand All @@ -36,7 +36,7 @@
import static org.junit.jupiter.api.Assertions.assertThrows;

@EnableAutoWeld
@AddPackages(value = {Convert.class, ColumnWorkflow.class, EntityObserver.class})
@AddPackages(value = {Convert.class, ColumnEntityConverter.class, EntityObserver.class})
@AddPackages(Person.class)
@AddExtensions({EntityMetadataExtension.class, ColumnExtension.class})
public class ColumnTemplateValidationTest {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import jakarta.validation.ConstraintViolation;
import jakarta.validation.ConstraintViolationException;
import org.eclipse.jnosql.mapping.Convert;
import org.eclipse.jnosql.mapping.document.DocumentWorkflow;
import org.eclipse.jnosql.mapping.document.DocumentEntityConverter;
import org.eclipse.jnosql.mapping.document.spi.DocumentExtension;
import org.eclipse.jnosql.mapping.reflection.EntityMetadataExtension;
import org.jboss.weld.junit5.auto.AddExtensions;
Expand All @@ -36,7 +36,7 @@
import static org.junit.jupiter.api.Assertions.assertEquals;

@EnableAutoWeld
@AddPackages(value = {Convert.class, DocumentWorkflow.class, EntityObserver.class})
@AddPackages(value = {Convert.class, DocumentEntityConverter.class, EntityObserver.class})
@AddPackages(Person.class)
@AddExtensions({EntityMetadataExtension.class, DocumentExtension.class})
public class DocumentTemplateValidationTest {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import jakarta.validation.ConstraintViolation;
import jakarta.validation.ConstraintViolationException;
import org.eclipse.jnosql.mapping.Convert;
import org.eclipse.jnosql.mapping.keyvalue.KeyValueWorkflow;
import org.eclipse.jnosql.mapping.keyvalue.KeyValueEntityConverter;
import org.eclipse.jnosql.mapping.keyvalue.spi.KeyValueExtension;
import org.eclipse.jnosql.mapping.reflection.EntityMetadataExtension;
import org.jboss.weld.junit5.auto.AddExtensions;
Expand All @@ -36,7 +36,7 @@
import static org.junit.jupiter.api.Assertions.assertEquals;

@EnableAutoWeld
@AddPackages(value = {Convert.class, KeyValueWorkflow.class, EntityObserver.class})
@AddPackages(value = {Convert.class, KeyValueEntityConverter.class, EntityObserver.class})
@AddPackages(Person.class)
@AddExtensions({EntityMetadataExtension.class, KeyValueExtension.class})
public class KeyValueTemplateValidationTest {
Expand Down

0 comments on commit 3c2f240

Please sign in to comment.