Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ plugins {
}

group = 'com.flexcodelabs'
version = '0.0.26'
version = '0.0.27'
description = 'Flextuma App'

java {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.flexcodelabs.flextuma.core.entities.metadata;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.flexcodelabs.flextuma.core.entities.base.Owner;
import com.flexcodelabs.flextuma.core.entities.contact.Contact;
import jakarta.persistence.Column;
Expand All @@ -22,5 +23,6 @@ public abstract class AbstractMetadataEntity extends Owner {
private String description;

@ManyToMany
@JsonIgnoreProperties({ "hibernateLazyInitializer", "handler" })
private List<Contact> contacts = new ArrayList<>();
}
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ public void seedSystemData() {
privId);
log.info("🔐 Privilege seeding result: {} rows affected", privResult);

// Seed role
UUID roleId = UUID.fromString("6269df23-f8a0-4776-bd89-3015521bc19d");
int roleResult = jdbcTemplate.update(
"INSERT INTO role (id, name, system, active, created, updated) " +
Expand All @@ -41,17 +40,14 @@ public void seedSystemData() {
roleId);
log.info("👑 Role seeding result: {} rows affected", roleResult);

// Link role to privilege
int userPrivResult = jdbcTemplate.update(
"INSERT INTO userprivilege (role, privilege) VALUES (?, ?) " +
"ON CONFLICT DO NOTHING",
roleId, privId);
log.info("🔗 Role-Privilege linking result: {} rows affected", userPrivResult);

// Seed admin user
seedUser(roleId, "admin", "admin@flextuma.com", "Admin123", roleId);

// Seed system user
seedUser(UUID.fromString("7269df24-68a0-4776-bd89-4015521bc19d"), "SYSTEM",
"system@flextuma.com", "system_secret_key", roleId);

Expand Down