package edu.umdearborn.astronomyapp.entity;

import javax.persistence.MappedSuperclass;
import javax.validation.constraints.NotNull;

import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;

@MappedSuperclass
public abstract class AbstractOption extends AbstractGeneratedId {

  private static final long serialVersionUID = -8982150102570938109L;

  @NotNull
  private boolean isCorrectOption = false;

  @Override
  public boolean equals(Object obj) {
    return EqualsBuilder.reflectionEquals(this, obj);
  }

  @Override
  public int hashCode() {
    return HashCodeBuilder.reflectionHashCode(this);
  }

  public boolean isCorrectOption() {
    return isCorrectOption;
  }

  public void setCorrectOption(boolean isCorrectOption) {
    this.isCorrectOption = isCorrectOption;
  }

  @Override
  public String toString() {
    return ToStringBuilder.reflectionToString(this);
  }

}

@@ -297,16 +297,71 @@
 ilder;%0A%0A
+import com.fasterxml.jackson.annotation.JsonProperty;%0A%0A
 @MappedS
@@ -509,16 +509,51 @@
 8109L;%0A%0A
+  @JsonProperty(%22isCorrectOption%22)%0A
   @NotNu

fix naming