DATAJPA-623 - Fixed package cycles accidentally introduced.

Moved JpaEntityMetadata and DefaultJpaEntityMetadata to query package to avoid a cyclic dependency to it. Jpa21Utils now also resides in the query package as the util package must not depend on other project packages.

Updated the Sonargraph architecture description by adding new architectural artifacts for mapping, the CDI support and utilities. Defined allowed dependencies more strictly to detect architecture violations more aggressively.
This commit is contained in:
Oliver Gierke
2014-11-10 15:50:54 +01:00
parent 1aac6809ea
commit e067f01fa4
17 changed files with 260 additions and 237 deletions

View File

@@ -23,7 +23,6 @@ import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mock;
import org.mockito.runners.MockitoJUnitRunner;
import org.springframework.data.jpa.repository.support.JpaEntityMetadata;
/**
* Unit tests for {@link ExpressionBasedStringQuery}.

View File

@@ -42,8 +42,6 @@ import org.springframework.data.domain.Sort;
import org.springframework.data.jpa.domain.sample.User;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.jpa.repository.sample.UserRepository;
import org.springframework.data.jpa.repository.support.DefaultJpaEntityMetadata;
import org.springframework.data.jpa.repository.support.JpaEntityMetadata;
import org.springframework.data.repository.core.RepositoryMetadata;
import org.springframework.data.repository.query.RepositoryQuery;
import org.springframework.data.repository.query.DefaultEvaluationContextProvider;

View File

@@ -30,7 +30,6 @@ import org.junit.runner.RunWith;
import org.mockito.Mock;
import org.mockito.runners.MockitoJUnitRunner;
import org.springframework.data.jpa.domain.sample.User;
import org.springframework.data.jpa.repository.support.JpaEntityMetadata;
import org.springframework.data.repository.query.Param;
import org.springframework.util.ReflectionUtils;

View File

@@ -21,6 +21,7 @@ import static org.junit.Assert.*;
import javax.persistence.Entity;
import org.junit.Test;
import org.springframework.data.jpa.repository.query.DefaultJpaEntityMetadata;
/**
* Unit tests for {@link DefaultJpaEntityMetadata}.