Skip to content
Extraits de code Groupes Projets
Valider 5182bee8 rédigé par Mohamed Lemine BAILLAHI's avatar Mohamed Lemine BAILLAHI
Parcourir les fichiers

Merge branch 'feauture/IA-439' into 'develop'

Resolve IA-439 "Feauture/"

Closes IA-439

See merge request !49
parents 0872119b 4466a280
Branches
Étiquettes
1 requête de fusion!49Resolve IA-439 "Feauture/"
Pipeline #21287 réussi avec les étapes
in 6 minutes et 16 secondes
## [0.0.38-RELEASE]
### Added
- New features that have been added.
- add AssistantVersionMapping. and DetailLevelConfig and DetailLevelHistory
### Changed
- Changes in existing functionality.
......
package com.marketingconfort.brainboost_common.gestion_modeles.models;
import jakarta.persistence.*;
import lombok.*;
import java.time.LocalDateTime;
@Entity
@Table(name = "assistant_version_mapping")
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
public class AssistantVersionMapping extends BaseEntity {
@Column(name = "assistant_manager_id", nullable = false, unique = true)
private Long assistantManagerId;
@Column(name = "version_id", nullable = false)
private Long versionId;
@Column(name = "is_active", nullable = false)
private Boolean isActive = true;
@Column(name = "updated_at")
private LocalDateTime updatedAt;
@Column(name = "created_by")
private String createdBy = "SYSTEM";
// Constructeur utilitaire
public AssistantVersionMapping(Long assistantManagerId, Long versionId) {
this.assistantManagerId = assistantManagerId;
this.versionId = versionId;
this.isActive = true;
this.updatedAt = LocalDateTime.now();
this.createdBy = "SYSTEM";
}
@PreUpdate
protected void onUpdate() {
this.updatedAt = LocalDateTime.now();
}
}
\ No newline at end of file
package com.marketingconfort.brainboost_common.gestion_modeles.models;
import jakarta.persistence.*;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import java.time.LocalDateTime;
@Entity
@Table(name = "detail_level_configs")
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
public class DetailLevelConfig extends BaseEntity {
@Column(name = "detail_level", nullable = false)
private Integer detailLevel;
@Column(name = "calculated_temperature", nullable = false)
private Double calculatedTemperature;
@Column(name = "conversion_method")
private String conversionMethod;
@Column(name = "created_by")
private String createdBy;
@Column(name = "last_modified_by")
private String lastModifiedBy;
@Column(name = "updated_at")
private LocalDateTime updatedAt;
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "version_id", nullable = false)
private Version version;
}
\ No newline at end of file
package com.marketingconfort.brainboost_common.gestion_modeles.models;
import jakarta.persistence.*;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import java.time.LocalDateTime;
@Entity
@Table(name = "detail_level_history")
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
public class DetailLevelHistory extends BaseEntity {
@Column(name = "previous_level")
private Integer previousLevel;
@Column(name = "new_level", nullable = false)
private Integer newLevel;
@Column(name = "previous_temperature")
private Double previousTemperature;
@Column(name = "new_temperature", nullable = false)
private Double newTemperature;
@Column(name = "change_reason", columnDefinition = "TEXT")
private String changeReason;
@Column(name = "changed_by")
private String changedBy;
@Column(name = "changed_at", nullable = false)
private LocalDateTime changedAt;
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "detail_level_config_id", nullable = false)
private DetailLevelConfig detailLevelConfig;
}
\ No newline at end of file
0% ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter