package models;

import play.data.validation.Constraints;
import play.db.ebean.Model;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import java.util.ArrayList;
import java.util.List;

@Entity
public class Powerup extends Model {
    public static Model.Finder<Long, models.Powerup> find = new Model.Finder<>(Long.class, models.Powerup.class);

    @Id
    public Long id;

    @Constraints.Required
    public String className;

    @Constraints.Required
    public String friendlyName;

    @Constraints.Required
    public boolean isMandatory;

    @OneToMany(cascade = CascadeType.PERSIST)
    public List<Activation> activations = new ArrayList<>();

}

@@ -109,117 +109,9 @@
 nce.
-CascadeType;%0Aimport javax.persistence.Entity;%0Aimport javax.persistence.Id;%0Aimport javax.persistence.OneToMany
+*
 ;%0Aim
@@ -523,16 +523,78 @@
 atory;%0A%0A
+    @Basic(optional = true)%0A    public boolean hasMenuEntry;%0A%0A
     @One

Add field to indicate whether or not the powerup should be listed in menu.