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 3811b4d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 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
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 3811b4d

Please sign in to comment.