Skip to content

Instantly share code, notes, and snippets.

View kovax's full-sized avatar

Zsolt Kovács kovax

View GitHub Profile
@kovax
kovax / JooqSqlXmlTest.java
Created August 5, 2020 13:51
Jooq custom data type binding of postgres xml (java.sql.SQLXML) to org.w3c.dom.Document
package jooqdb;
import static org.jooq.SQLDialect.POSTGRES;
import static org.jooq.impl.DSL.constraint;
import static org.jooq.impl.DSL.field;
import static org.jooq.impl.DSL.name;
import static org.jooq.impl.DSL.table;
import static org.jooq.impl.DSL.using;
import java.sql.Connection;
@startuml
together {
Path <|-- RolePath
Path <|-- ItemPath
Path <|-- DomainPath
}
ItemPath <|-- AgentPath
ItemPath -[hidden]left-> RolePath
@kovax
kovax / CRISTAL-iSE_XMLDBDocuments.puml
Last active September 30, 2016 06:25
Document structure of CRISTAL-iSE XMLDB module implemented in eXistDB
@startuml
set namespaceSeparator none
"uuid\n/domain/paths" "1" *--> "*" ViewPoint.schemaName.viewName
"uuid\n/domain/paths" "1" *--> "*" AuditTrail.eventId
"uuid\n/domain/paths" "1" *--> "*" Outcome.schemaName.schemaVersion.eventID
"uuid\n/domain/paths" "1" *--> "*" Property.name
"uuid\n/domain/paths" "1" *--> "*" Collection.name.version
"uuid\n/domain/paths" "1" *--> "1" Lifecycle.workflow
Collection.name.version "1" *--> "*" Member
@kovax
kovax / CRISTAL-iSETriggerSM.puml
Last active September 22, 2016 19:38
The StateMachine specification usable with the https://github.com/cristal-ise/trigger project
@startuml
[*] -> Waiting
Waiting --> Started: Start
Started --> Suspended : Suspend
Suspended --> Started : Resume
Waiting --> Finished : Done
Started --> Finished : Complete
Finished --> Finished : Proceed
Started --> Started : Warning
Started --> Paused : Timeout
@startuml
[*] -> Waiting
Waiting --> Started: Start
Waiting --> Finished : Done
Started --> Finished : Complete
Started --> Suspended : Suspend
Suspended --> Started : Resume
Finished --> Finished : Proceed
note as N1