Skip to content

Commit

Permalink
drop optimistic locking field from entities
Browse files Browse the repository at this point in the history
  • Loading branch information
derklaro committed Nov 27, 2024
1 parent 8de0d7e commit 7104f37
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
import jakarta.persistence.OrderColumn;
import jakarta.persistence.Table;
import jakarta.persistence.Transient;
import jakarta.persistence.Version;
import java.time.OffsetDateTime;
import java.util.Objects;
import java.util.Set;
Expand Down Expand Up @@ -78,12 +77,6 @@ public final class SimRailDispatchPostEntity {
@Nonnull
@Column(nullable = false)
private UUID pointId;
/**
* The revision version of this entity.
*/
@Version
@Column(nullable = false)
private long version;
/**
* The foreign (mongo identifier) of the dispatch post provided by the SimRail api.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
import jakarta.persistence.OrderBy;
import jakarta.persistence.Table;
import jakarta.persistence.Transient;
import jakarta.persistence.Version;
import java.time.OffsetDateTime;
import java.util.List;
import java.util.Objects;
Expand Down Expand Up @@ -87,12 +86,6 @@ public final class JourneyEntity implements Persistable<UUID> {
*/
@Column(nullable = false, unique = true)
private UUID foreignRunId;
/**
* The revision version of this entity.
*/
@Column
@Version
private long version;

/**
* The internal id of the server on which the associated journey is happening.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
import jakarta.persistence.Index;
import jakarta.persistence.Table;
import jakarta.persistence.Transient;
import jakarta.persistence.Version;
import java.time.OffsetDateTime;
import java.util.List;
import java.util.Objects;
Expand Down Expand Up @@ -69,12 +68,6 @@ public final class SimRailServerEntity {
@Id
@Nonnull
private UUID id;
/**
* The revision version of this entity.
*/
@Version
@Column
private long version;
/**
* The foreign (mongo identifier) of the server provided by the SimRail api.
*/
Expand Down

0 comments on commit 7104f37

Please sign in to comment.