Skip to content

Commit

Permalink
changed packages
Browse files Browse the repository at this point in the history
  • Loading branch information
paullatzelsperger committed Dec 12, 2023
1 parent 8d4c43c commit 5550eca
Show file tree
Hide file tree
Showing 11 changed files with 18 additions and 77 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
*
*/

package org.eclipse.edc.identityhub.did.store.sql;
package org.eclipse.edc.identityhub.store.sql.credentials;

import org.eclipse.edc.identityhub.did.store.sql.schema.postgres.VerifiableCredentialResourceMapping;
import org.eclipse.edc.identityhub.store.sql.credentials.schema.postgres.VerifiableCredentialResourceMapping;
import org.eclipse.edc.spi.query.QuerySpec;
import org.eclipse.edc.sql.translation.SqlQueryStatement;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
*
*/

package org.eclipse.edc.identityhub.did.store.sql;
package org.eclipse.edc.identityhub.store.sql.credentials;

import org.eclipse.edc.spi.query.QuerySpec;
import org.eclipse.edc.sql.statement.SqlStatements;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
*
*/

package org.eclipse.edc.identityhub.did.store.sql;
package org.eclipse.edc.identityhub.store.sql.credentials;

import com.fasterxml.jackson.databind.ObjectMapper;
import org.eclipse.edc.identityhub.spi.store.CredentialStore;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
*
*/

package org.eclipse.edc.identityhub.did.store.sql;
package org.eclipse.edc.identityhub.store.sql.credentials;

import org.eclipse.edc.identityhub.did.store.sql.schema.postgres.PostgresDialectStatements;
import org.eclipse.edc.identityhub.spi.store.CredentialStore;
import org.eclipse.edc.identityhub.store.sql.credentials.schema.postgres.PostgresDialectStatements;
import org.eclipse.edc.runtime.metamodel.annotation.Extension;
import org.eclipse.edc.runtime.metamodel.annotation.Inject;
import org.eclipse.edc.runtime.metamodel.annotation.Provider;
Expand All @@ -27,7 +27,7 @@
import org.eclipse.edc.transaction.datasource.spi.DataSourceRegistry;
import org.eclipse.edc.transaction.spi.TransactionContext;

import static org.eclipse.edc.identityhub.did.store.sql.SqlCredentialStoreExtension.NAME;
import static org.eclipse.edc.identityhub.store.sql.credentials.SqlCredentialStoreExtension.NAME;

@Extension(value = NAME)
public class SqlCredentialStoreExtension implements ServiceExtension {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,14 @@
*
*/

package org.eclipse.edc.identityhub.did.store.sql.schema.postgres;
package org.eclipse.edc.identityhub.store.sql.credentials.schema.postgres;

import org.eclipse.edc.spi.types.PathItem;
import org.eclipse.edc.sql.translation.JsonFieldMapping;

import java.util.ArrayList;
import java.util.List;

import static org.eclipse.edc.identityhub.did.store.sql.schema.postgres.PostgresDialectStatements.CREDENTIAL_SUBJECT_ALIAS;

/**
* Maps the canonical format of a {@link org.eclipse.edc.identitytrust.model.VerifiableCredential} onto its JSON representation
* and generates query statements for Postgres.
Expand All @@ -30,7 +28,7 @@ public class CredentialJsonMapping extends JsonFieldMapping {

public CredentialJsonMapping(String columnName) {
super(columnName);
add("credentialSubject", CREDENTIAL_SUBJECT_ALIAS);
add("credentialSubject", PostgresDialectStatements.CREDENTIAL_SUBJECT_ALIAS);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
*
*/

package org.eclipse.edc.identityhub.did.store.sql.schema.postgres;
package org.eclipse.edc.identityhub.store.sql.credentials.schema.postgres;

import org.eclipse.edc.identityhub.did.store.sql.BaseSqlDialectStatements;
import org.eclipse.edc.identityhub.store.sql.credentials.BaseSqlDialectStatements;
import org.eclipse.edc.spi.query.Criterion;
import org.eclipse.edc.spi.query.QuerySpec;
import org.eclipse.edc.sql.dialect.PostgresDialect;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
*
*/

package org.eclipse.edc.identityhub.did.store.sql.schema.postgres;
package org.eclipse.edc.identityhub.store.sql.credentials.schema.postgres;

import org.eclipse.edc.identityhub.did.store.sql.CredentialStoreStatements;
import org.eclipse.edc.identityhub.store.sql.credentials.CredentialStoreStatements;
import org.eclipse.edc.sql.translation.TranslationMapping;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
*
*/

package org.eclipse.edc.identityhub.did.store.sql.schema.postgres;
package org.eclipse.edc.identityhub.store.sql.credentials.schema.postgres;

import org.eclipse.edc.identityhub.did.store.sql.CredentialStoreStatements;
import org.eclipse.edc.identityhub.store.sql.credentials.CredentialStoreStatements;
import org.eclipse.edc.sql.translation.TranslationMapping;


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
#
#

org.eclipse.edc.identityhub.did.store.sql.SqlCredentialStoreExtension
org.eclipse.edc.identityhub.store.sql.credentials.SqlCredentialStoreExtension
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@
*
*/

package org.eclipse.edc.identityhub.did.store.sql;
package org.eclipse.edc.identityhub.store.sql.credentials;

import org.eclipse.edc.identityhub.credentials.store.test.CredentialStoreTestBase;
import org.eclipse.edc.identityhub.did.store.sql.schema.postgres.PostgresDialectStatements;
import org.eclipse.edc.identityhub.spi.store.CredentialStore;
import org.eclipse.edc.identityhub.store.sql.credentials.schema.postgres.PostgresDialectStatements;
import org.eclipse.edc.junit.annotations.ComponentTest;
import org.eclipse.edc.spi.types.TypeManager;
import org.eclipse.edc.sql.QueryExecutor;
Expand Down

This file was deleted.

0 comments on commit 5550eca

Please sign in to comment.