Class ConfigSchema
java.lang.Object
io.quarkus.hibernate.orm.panache.PanacheEntityBase
ai.pipestream.registration.entity.ConfigSchema
@Entity
public class ConfigSchema
extends io.quarkus.hibernate.orm.panache.PanacheEntityBase
Entity representing a configuration schema for a service.
This is the system of record, with Apicurio Registry as a secondary store.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescription -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ConfigSchemaFactory method to create a new ConfigSchema.static StringgenerateSchemaId(String serviceName, String version) Generates a unique schema ID.voidmarkSynced(String artifactId, Long globalId) Marks the schema as synced to Apicurio.voidmarkSyncFailed(String error) Marks the schema sync as failed.Methods inherited from class io.quarkus.hibernate.orm.panache.PanacheEntityBase
count, count, count, count, delete, delete, delete, delete, deleteAll, deleteById, find, find, find, find, find, find, findAll, findAll, findById, findById, findByIdOptional, findByIdOptional, findByIds, flush, getEntityManager, getSession, isPersistent, list, list, list, list, list, list, listAll, listAll, persist, persist, persist, persist, persistAndFlush, stream, stream, stream, stream, stream, stream, streamAll, streamAll, update, update, update
-
Field Details
-
schemaId
-
serviceName
-
schemaVersion
-
jsonSchema
-
createdAt
-
createdBy
-
apicurioArtifactId
-
apicurioGlobalId
-
syncStatus
-
lastSyncAttempt
-
syncError
-
-
Constructor Details
-
ConfigSchema
public ConfigSchema()
-
-
Method Details
-
create
Factory method to create a new ConfigSchema.- Parameters:
serviceName- the service nameversion- the schema versionjsonSchema- the JSON schema string- Returns:
- the created ConfigSchema
-
generateSchemaId
-
markSynced
-
markSyncFailed
Marks the schema sync as failed.- Parameters:
error- the error message
-