Class Branch
java.lang.Object
edu.ucsb.cs156.frontiers.entities.Branch
Represents a branch in a repository. Uses an embedded id because it allows us to easily reference
other entities that need to know about the branch, such as commits.
This entity purposefully does not include a list of commits because it is intended to be a lightweight bookkeeping entity for easily tracking the last time commit data was updated, and also acts as a lifecycle owner for commits. When it is deleted, all the commits associated with it will be cascade deleted.
In general, this entity should not be returned to a user directly -- instead, use a DTO to
project it. See CommitDto as an example.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Branch
public Branch()
-