Skip to content

Commit

Permalink
Feat: add index in hibernate annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
mbarbet committed Oct 23, 2024
1 parent 558b24a commit 46424a7
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@


@Entity
@Table(name = "user_data")
@Table(name = "user_data", indexes={@Index(columnList="docKey,docZone,docOrganization",name="doc_key_idx_orga")})
@JsonSnakeCase
public class Data {
public static final String idColumn = "id";
Expand Down
1 change: 0 additions & 1 deletion docker/docker-files/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ FROM gisaia/arlas-openjdk-17-distroless:20240926175122
WORKDIR /opt/app
COPY --from=build /opt/build/arlas-persistence-server.jar /opt/app/
COPY --from=build /opt/build/conf/configuration.yaml /opt/app/
COPY --from=build /opt/build/docker/docker-files/pgCreateTable.sql /opt/app/
EXPOSE 9997

ENV JDK_JAVA_OPTIONS="-Xmx512m -XX:+ExitOnOutOfMemoryError"
Expand Down
1 change: 0 additions & 1 deletion docker/docker-files/Dockerfile-package-only
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ FROM gisaia/arlas-openjdk-17-distroless:20240926175122
WORKDIR /opt/app
ADD arlas-persistence-server/target/arlas-persistence-server*.jar /opt/app/arlas-persistence-server.jar
ADD conf/configuration.yaml /opt/app/configuration.yaml
ADD docker/docker-files/pgCreateTable.sql /opt/app/pgCreateTable.sql
EXPOSE 9997

ENV JDK_JAVA_OPTIONS="-Xmx512m -XX:+ExitOnOutOfMemoryError"
Expand Down
2 changes: 1 addition & 1 deletion docs/arlas-persistence-overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Three types of storage are available in this server:
- File system storage
- All SQL SGBD compliant with hibernate, we use a non configurable unique table [`user_data`](../docker/docker-files/pgCreateTable.sql) in a dedicated configurable database.
ARLAS Persistence WILL NOT CREATE the table for you, think to create table before running the server.
ARLAS Persistence WILL CREATE the database and tables for you.
**WARNING** if you want to use this storage, make sure you have the environment variable ``ARLAS_PERSISTENCE_ENGINE`` set to **"hibernate"** with the double quote.
- Google Cloud Firestore : think to set GOOGLE_APPLICATION_CREDENTIALS as environement variable.

Expand Down

0 comments on commit 46424a7

Please sign in to comment.