Skip to content

Commit

Permalink
Disallow null subscriptionId in quota table (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
gothub committed Jun 26, 2020
1 parent d445d75 commit c4e9581
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/java/org/dataone/bookkeeper/api/Quota.java
Expand Up @@ -68,6 +68,8 @@ public class Quota {
private String unit;

/* The quota subscription id */
@NotEmpty
@NotNull
private Integer subscriptionId;

/* The quota subject id */
Expand Down Expand Up @@ -112,8 +114,8 @@ public Quota(String json) throws IOException {
* @param quotaType the quota type
* @param softLimit the quota soft limit
* @param hardLimit the quota hard limit
* @param unit the quota unit
* @param usage the quota usage
* @param unit the quota unit
* @param subscriptionId the quota subscription identifier
* @param subject the quota subject
*/
Expand Down Expand Up @@ -231,7 +233,6 @@ public void setHardLimit(@NotNull Double hardLimit) {
this.hardLimit = hardLimit;
}


/**
* Get the quota total usage
* @return usage the quota total usage
Expand Down

0 comments on commit c4e9581

Please sign in to comment.