Skip to content

Commit

Permalink
Fix pgjsonb with audit and restore RoleITCase#create
Browse files Browse the repository at this point in the history
  • Loading branch information
ilgrosso committed Feb 22, 2024
1 parent af08e3e commit 4376a9e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ public AnySearchDAO anySearchDAO(
}

@ConditionalOnMissingBean(name = "pgJPAJSONAuditEntryDAO")
@Bean
public AuditEntryDAO auditEntryDAO(final EntityManager entityManager) {
return new PGJPAJSONAuditEntryDAO(entityManager);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

import jakarta.persistence.Id;
import jakarta.persistence.MappedSuperclass;
import jakarta.validation.constraints.NotNull;
import org.apache.syncope.core.persistence.api.entity.ProvidedKeyEntity;

@MappedSuperclass
Expand All @@ -28,6 +29,7 @@ public abstract class AbstractProvidedKeyEntity extends AbstractEntity implement
private static final long serialVersionUID = 821537874069666593L;

@Id
@NotNull
private String id;

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public void create() {
createRole(role);
fail("This should not happen");
} catch (SyncopeClientException e) {
assertEquals(ClientExceptionType.GenericPersistence, e.getType());
assertEquals(ClientExceptionType.InvalidRole, e.getType());
}

role.setKey("new" + getUUIDString());
Expand Down

0 comments on commit 4376a9e

Please sign in to comment.