Skip to content
Extraits de code Groupes Projets
Valider dc5efa28 rédigé par karima hamdan's avatar karima hamdan
Parcourir les fichiers

adding some missin attributes to Maintenance and maintenance activity entities

parent 8e71deaf
Branches
Étiquettes
1 requête de fusion!37MLC-311 "Feature/adding some missing attributes in Maintenance and maintenanceActivty entities"
......@@ -3,7 +3,7 @@
- added uuid attributes to both User and Maintenance entities and images attribute to Maintenance entity
### Changed
- Changes in existing functionality.
- changed vehicle type in vehicle entity
### Deprecated
- Soon-to-be removed features.
......
......@@ -23,12 +23,12 @@ public class Maintenance {
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long idMaintenance;
@Column(nullable = false, unique = true, updatable = false)
private UUID numeroMaintenance;;
private String numeroMaintenance;;
@Column(name = "workshop_name")
private String workshopName;
private LocalDate startDate;
private String hour;
private LocalDate endDate;
@Enumerated(EnumType.STRING)
......@@ -56,7 +56,7 @@ public class Maintenance {
@PrePersist
public void assignUUID() {
this.numeroMaintenance = UUID.randomUUID();
this.numeroMaintenance = UUID.randomUUID().toString();
}
}
......@@ -11,6 +11,7 @@ import lombok.experimental.SuperBuilder;
@NoArgsConstructor
@SuperBuilder
public class MaintenanceActivity extends CalendarActivity{
private String title;
@OneToOne
@JoinColumn(name = "maintenance_id", nullable = false)
private Maintenance maintenance;
......
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