mirror of
https://github.com/google/nomulus
synced 2026-09-12 11:06:29 +00:00
Fix id generation in PackagePromotion (#1788)
* Fix id generation in PackagePromotion * Fix update command tests
This commit is contained in:
@@ -29,6 +29,8 @@ import java.util.Optional;
|
||||
import javax.annotation.Nullable;
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
import org.hibernate.annotations.Columns;
|
||||
import org.hibernate.annotations.Type;
|
||||
@@ -41,7 +43,9 @@ import org.joda.time.DateTime;
|
||||
public class PackagePromotion extends ImmutableObject implements Buildable {
|
||||
|
||||
/** An autogenerated identifier for the package promotion. */
|
||||
@Id long packagePromotionId;
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
long packagePromotionId;
|
||||
|
||||
/** The allocation token string for the package. */
|
||||
@Column(nullable = false)
|
||||
|
||||
Reference in New Issue
Block a user