[DEV] folow the archidata API

This commit is contained in:
Edouard DUPIN 2023-10-25 23:54:40 +02:00
parent 5256278219
commit f92b582983
8 changed files with 28 additions and 23 deletions

View File

@ -27,6 +27,7 @@
</classpathentry> </classpathentry>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"> <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER">
<attributes> <attributes>
<attribute name="module" value="true"/>
<attribute name="maven.pomderived" value="true"/> <attribute name="maven.pomderived" value="true"/>
</attributes> </attributes>
</classpathentry> </classpathentry>

View File

@ -1 +0,0 @@
io.scenarium.web.karso.address=sqdfsqdfqsdf

View File

@ -5,10 +5,6 @@
<artifactId>karso</artifactId> <artifactId>karso</artifactId>
<version>0.4.3</version> <version>0.4.3</version>
<properties> <properties>
<!--
<jaxb.version>2.3.1</jaxb.version>
<istack.version>4.1.1</istack.version>
-->
<maven.compiler.version>3.1</maven.compiler.version> <maven.compiler.version>3.1</maven.compiler.version>
<maven.compiler.source>17</maven.compiler.source> <maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target> <maven.compiler.target>17</maven.compiler.target>
@ -26,19 +22,28 @@
<artifactId>archidata</artifactId> <artifactId>archidata</artifactId>
<version>0.4.0</version> <version>0.4.0</version>
</dependency> </dependency>
<!-- testing -->
<dependency> <dependency>
<groupId>org.slf4j</groupId> <groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId> <artifactId>slf4j-simple</artifactId>
<version>2.0.7</version> <version>2.0.7</version>
<!--<scope>test</scope>-->
</dependency> </dependency>
<!--
************************************************************
** TEST dependency **
************************************************************
-->
<dependency> <dependency>
<groupId>org.junit.jupiter</groupId> <groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId> <artifactId>junit-jupiter-api</artifactId>
<version>5.7.2</version> <version>5.10.0</version>
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<version>5.10.0</version>
<scope>test</scope>
</dependency>
</dependencies> </dependencies>
<build> <build>
<sourceDirectory>src</sourceDirectory> <sourceDirectory>src</sourceDirectory>
@ -49,6 +54,11 @@
<directory>src/resources</directory> <directory>src/resources</directory>
</resource> </resource>
</resources> </resources>
<testResources>
<testResource>
<directory>${basedir}/test/resources</directory>
</testResource>
</testResources>
<plugins> <plugins>
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
@ -178,11 +188,6 @@
</plugin> </plugin>
</plugins> </plugins>
<testResources>
<testResource>
<directory>${basedir}/test/resources</directory>
</testResource>
</testResources>
</build> </build>
<!-- Generate Java-docs As Part Of Project Reports --> <!-- Generate Java-docs As Part Of Project Reports -->
<reporting> <reporting>

View File

@ -13,7 +13,7 @@ CREATE TABLE `application` (
import org.kar.archidata.annotation.SQLComment; import org.kar.archidata.annotation.SQLComment;
import org.kar.archidata.annotation.SQLDefault; import org.kar.archidata.annotation.SQLDefault;
import org.kar.archidata.annotation.SQLIfNotExists; import org.kar.archidata.annotation.SQLIfNotExists;
import org.kar.archidata.model.GenericTable; import org.kar.archidata.model.GenericTableSoftDelete;
import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonInclude;
@ -23,7 +23,7 @@ import jakarta.persistence.Table;
@Table(name = "application") @Table(name = "application")
@SQLIfNotExists @SQLIfNotExists
@JsonInclude(JsonInclude.Include.NON_NULL) @JsonInclude(JsonInclude.Include.NON_NULL)
public class Application extends GenericTable { public class Application extends GenericTableSoftDelete {
@Column(length = 256) @Column(length = 256)
public String name; public String name;
@Column(length = 2048) @Column(length = 2048)

View File

@ -2,7 +2,7 @@ package org.kar.karso.model;
import org.kar.archidata.annotation.SQLComment; import org.kar.archidata.annotation.SQLComment;
import org.kar.archidata.annotation.SQLIfNotExists; import org.kar.archidata.annotation.SQLIfNotExists;
import org.kar.archidata.model.GenericTable; import org.kar.archidata.model.GenericTableSoftDelete;
import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonInclude;
@ -14,7 +14,7 @@ import jakarta.persistence.Table;
@Table(name = "right") @Table(name = "right")
@SQLIfNotExists @SQLIfNotExists
@JsonInclude(JsonInclude.Include.NON_NULL) @JsonInclude(JsonInclude.Include.NON_NULL)
public class Right extends GenericTable { public class Right extends GenericTableSoftDelete {
@Column(nullable = false) @Column(nullable = false)
@SQLComment("application-ID that have the reference of the right") @SQLComment("application-ID that have the reference of the right")

View File

@ -3,7 +3,7 @@ package org.kar.karso.model;
import org.kar.archidata.annotation.SQLComment; import org.kar.archidata.annotation.SQLComment;
import org.kar.archidata.annotation.SQLDefault; import org.kar.archidata.annotation.SQLDefault;
import org.kar.archidata.annotation.SQLIfNotExists; import org.kar.archidata.annotation.SQLIfNotExists;
import org.kar.archidata.model.GenericTable; import org.kar.archidata.model.GenericTableSoftDelete;
import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonInclude;
@ -15,7 +15,7 @@ import jakarta.persistence.Table;
@Table(name = "rightDescription") @Table(name = "rightDescription")
@SQLIfNotExists @SQLIfNotExists
@JsonInclude(JsonInclude.Include.NON_NULL) @JsonInclude(JsonInclude.Include.NON_NULL)
public class RightDescription extends GenericTable { public class RightDescription extends GenericTableSoftDelete {
@Column(nullable = false) @Column(nullable = false)
@SQLComment("Application id that have the reference of the right") @SQLComment("Application id that have the reference of the right")
@ManyToOne(fetch = FetchType.LAZY, targetEntity = Application.class) @ManyToOne(fetch = FetchType.LAZY, targetEntity = Application.class)

View File

@ -13,7 +13,7 @@ CREATE TABLE `application` (
import org.kar.archidata.annotation.SQLComment; import org.kar.archidata.annotation.SQLComment;
import org.kar.archidata.annotation.SQLDefault; import org.kar.archidata.annotation.SQLDefault;
import org.kar.archidata.annotation.SQLIfNotExists; import org.kar.archidata.annotation.SQLIfNotExists;
import org.kar.archidata.model.GenericTable; import org.kar.archidata.model.GenericTableSoftDelete;
import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonInclude;
@ -27,7 +27,7 @@ enum PropertyType {
@Table(name = "settings") @Table(name = "settings")
@SQLIfNotExists @SQLIfNotExists
@JsonInclude(JsonInclude.Include.NON_NULL) @JsonInclude(JsonInclude.Include.NON_NULL)
public class Settings extends GenericTable { public class Settings extends GenericTableSoftDelete {
@Column(length = 512, nullable = false) @Column(length = 512, nullable = false)
public String key; public String key;
@SQLComment("Right for the specific element(ADMIN [rw] USER [rw] other [rw])") @SQLComment("Right for the specific element(ADMIN [rw] USER [rw] other [rw])")

View File

@ -11,7 +11,7 @@ CREATE TABLE `application` (
*/ */
import org.kar.archidata.annotation.SQLIfNotExists; import org.kar.archidata.annotation.SQLIfNotExists;
import org.kar.archidata.model.GenericTable; import org.kar.archidata.model.GenericTableSoftDelete;
import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonInclude;
@ -21,7 +21,7 @@ import jakarta.persistence.Table;
@Table(name = "user_link_application") @Table(name = "user_link_application")
@SQLIfNotExists @SQLIfNotExists
@JsonInclude(JsonInclude.Include.NON_NULL) @JsonInclude(JsonInclude.Include.NON_NULL)
public class UserLinkApplication extends GenericTable { public class UserLinkApplication extends GenericTableSoftDelete {
public long user_id; public long user_id;
public long application_id; public long application_id;
} }