package io.pivotal.model;

import org.springframework.data.annotation.ReadOnlyProperty;
import javax.persistence.*;

@Entity
@Table(name = "packages")
@Inheritance(strategy =  InheritanceType.SINGLE_TABLE)
@DiscriminatorColumn(name = "package_type")
public abstract class Package {
    protected String name;
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    private long id;
    private String description;

    public Package() {

    }

    @ReadOnlyProperty
    @Column(name = "package_type", insertable=false, updatable=false)
    private String packageType;


    public Package(String name, String description) {
        this.name = name;
        this.description = description;
    }

    public String getName() {
        return name;
    }

    public String getDescription() {
        return description;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getPackageType() {
        return packageType;
    }
}

@@ -279,35 +279,9 @@
 e %7B%0A
-    protected String name;
 %0A
+
     
@@ -357,16 +357,41 @@
 ong id;%0A
+    private String name;%0A
     priv
@@ -418,40 +418,8 @@
 on;%0A
-%0A    public Package() %7B%0A%0A    %7D%0A%0A
     
@@ -539,16 +539,45 @@
 eType;%0A%0A
+    public Package() %7B%0A    %7D%0A
 %0A    pub

fix ordering in file