A small set of annotations and utilities for mapping Java types to SQL structures and generating mapping/metamodel code.
data- runtime annotations and small utilities (contains annotation classes such as@Entity,@Table,@Column,@Mapper, etc.).codegen- annotation processor / code generator that creates metamodels and mapper classes at compile time.
Add the dependency to your pom.xml (replace the version with a released version when available):
<dependency>
<groupId>org.lorislab.lib</groupId>
<artifactId>lorislab-sql-data</artifactId>
<version>{VERSION}</version>
</dependency>If you use the codegen processor, make sure annotation processing is enabled; in Maven it is automatic for maven-compiler-plugin.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<annotationProcessorPaths>
<path>
<groupId>org.lorislab.quarkus</groupId>
<artifactId>quarkus-data-codegen</artifactId>
<version>{VERSION}</version>
</path>
</annotationProcessorPaths>
</configuration>
</plugin>This project is licensed under the Apache License, Version 2.0. See the LICENSE for details.
Contributions are welcome. See the repository on GitHub: https://github.com/lorislab/lorislab-sql-data