Skip to content

2 create event entity and jpa repository - #9

Merged
TyostoKarry merged 2 commits into
mainfrom
2-create-event-entity-and-jpa-repository
Oct 20, 2025
Merged

2 create event entity and jpa repository#9
TyostoKarry merged 2 commits into
mainfrom
2-create-event-entity-and-jpa-repository

Conversation

@TyostoKarry

Copy link
Copy Markdown
Owner
  • Added Event JPA entity with fields id, name, and dates.
  • Configured @ElementCollection to store multiple event dates in a separate event_dates table.
  • Created EventRepository interface extending JpaRepository<Event, Long> for CRUD operations.

- Added Event class under the entity package.
- Defined fields: id, name, and dates.
- Configured JPA annotations with @entity and @ElementCollection for date storage.
- Uses a separate table (event_dates) linked via event_id for possible event dates.
- Added EventRepository under the repository package.
- Extended JpaRepository<Event, Long> for built-in CRUD operations.
- Annotated with @repository for Spring component scanning.
@TyostoKarry TyostoKarry self-assigned this Oct 20, 2025
@TyostoKarry TyostoKarry linked an issue Oct 20, 2025 that may be closed by this pull request
@TyostoKarry
TyostoKarry merged commit 6cbd70f into main Oct 20, 2025
1 check passed
@TyostoKarry
TyostoKarry deleted the 2-create-event-entity-and-jpa-repository branch October 20, 2025 07:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Create Event entity and JPA repository

1 participant