<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>

  <parent>
    <groupId>ai.aletyx.kogito</groupId>
    <artifactId>aletyx-kogito-ai-adhoc-subprocess-parent</artifactId>
    <version>0.2.0</version>
  </parent>

  <artifactId>aletyx-kogito-ai-adhoc-subprocess-storage-jpa</artifactId>

  <name>Aletyx Kogito AI Add-ons :: Ad-Hoc Subprocess :: JPA Storage</name>
  <description>Framework-agnostic JPA persistence for the Aletyx AI Ad-Hoc Subprocess add-on for Kogito: entities, Jackson-backed JSON column converters, and an EntityManager-based repository. Runtime modules (Quarkus/Spring Boot) wrap this base with transactional semantics.</description>

  <dependencies>
    <dependency>
      <groupId>ai.aletyx.kogito</groupId>
      <artifactId>aletyx-kogito-ai-adhoc-subprocess</artifactId>
    </dependency>

    <!-- Jakarta Persistence API (no provider — runtime modules bring Hibernate) -->
    <dependency>
      <groupId>jakarta.persistence</groupId>
      <artifactId>jakarta.persistence-api</artifactId>
    </dependency>

    <!-- JSON converters for Map<String,Object> columns -->
    <dependency>
      <groupId>com.fasterxml.jackson.core</groupId>
      <artifactId>jackson-databind</artifactId>
    </dependency>

    <!-- Logging -->
    <dependency>
      <groupId>org.slf4j</groupId>
      <artifactId>slf4j-api</artifactId>
    </dependency>

    <!-- Test: H2 + Hibernate provide a real JPA stack so we exercise entity
         mapping, JSON converters, and cascade ordering on every build. -->
    <dependency>
      <groupId>org.junit.jupiter</groupId>
      <artifactId>junit-jupiter</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.assertj</groupId>
      <artifactId>assertj-core</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.hibernate.orm</groupId>
      <artifactId>hibernate-core</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>com.h2database</groupId>
      <artifactId>h2</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>ch.qos.logback</groupId>
      <artifactId>logback-classic</artifactId>
      <scope>test</scope>
    </dependency>
  </dependencies>

  <build>
    <plugins>
      <plugin>
        <groupId>io.smallrye</groupId>
        <artifactId>jandex-maven-plugin</artifactId>
      </plugin>
    </plugins>
  </build>
</project>
