Class Job

java.lang.Object
edu.ucsb.cs156.jobs.entities.Job

@Entity(name="jobs") public class Job extends Object
JPA entity for one asynchronous job: who launched it, its status, and a human-readable log that grows while the job runs.

The creator is denormalized into createdById/createdByEmail (no foreign key) so this entity has no dependency on any app's User entity; values come from the app-implemented JobUserProvider.

scopeType/scopeId optionally associate the job with one app-domain object (e.g. "course"/17); both are null for unscoped jobs.

Timestamps are maintained with JPA lifecycle callbacks rather than Spring Data auditing, so the library works whether or not the consuming app enables @EnableJpaAuditing.

  • Constructor Details

    • Job

      public Job()