Skip to content

Create Ticket entity #3

@timLP79

Description

@timLP79

Create Ticket.java JPA entity in com.absolutecode.ticketsystem.model.

Fields: id, title, description (TEXT), status (enum), priority (enum), createdBy (ManyToOne User), assignedTo (ManyToOne User, nullable), department (ManyToOne, required), active (default true), createdAt, updatedAt.

Key details:

  • department = where ticket is routed for resolution, NOT submitter's department
  • assignedTo nullable until an agent picks it up
  • active flag for archiving, separate from CLOSED status
  • Needs @PrePersist and @PreUpdate for timestamps
  • Depends on: TicketStatus enum, Priority enum, User entity, Department entity

See DECISIONS.md for full field spec.

Metadata

Metadata

Assignees

No one assigned

    Labels

    entityJPA entity / data model work

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions