From c228fee79cd359776613b3093443db9e9705ecad Mon Sep 17 00:00:00 2001 From: mukeshs Date: Wed, 5 Nov 2025 16:23:28 +0530 Subject: [PATCH] Event update --- .../study/fullstack/supportportal/backend/domain/Event.java | 2 +- .../src/app/component/event-form/event-form.component.html | 2 +- .../src/app/component/event-form/event-form.component.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/support-portal-backend/src/main/java/net/shyshkin/study/fullstack/supportportal/backend/domain/Event.java b/support-portal-backend/src/main/java/net/shyshkin/study/fullstack/supportportal/backend/domain/Event.java index 3eaa98e..44867ce 100644 --- a/support-portal-backend/src/main/java/net/shyshkin/study/fullstack/supportportal/backend/domain/Event.java +++ b/support-portal-backend/src/main/java/net/shyshkin/study/fullstack/supportportal/backend/domain/Event.java @@ -19,7 +19,7 @@ public class Event { @GeneratedValue(strategy = GenerationType.IDENTITY) private Long id; - @Column(nullable = false, unique = true) + @Column private String code; @Column(nullable = false) diff --git a/support-portal-frontend/src/app/component/event-form/event-form.component.html b/support-portal-frontend/src/app/component/event-form/event-form.component.html index c4fdaa9..cc0b864 100644 --- a/support-portal-frontend/src/app/component/event-form/event-form.component.html +++ b/support-portal-frontend/src/app/component/event-form/event-form.component.html @@ -28,7 +28,7 @@
diff --git a/support-portal-frontend/src/app/component/event-form/event-form.component.ts b/support-portal-frontend/src/app/component/event-form/event-form.component.ts index 0d4ed07..e9b06ab 100644 --- a/support-portal-frontend/src/app/component/event-form/event-form.component.ts +++ b/support-portal-frontend/src/app/component/event-form/event-form.component.ts @@ -28,7 +28,7 @@ export class EventFormComponent implements OnInit { ngOnInit() { this.eventForm = this.fb.group({ - code: ['', Validators.required], + code: [''], year: ['', Validators.required], subject: ['', Validators.required], title: ['', Validators.required],