package dist.models; import com.avaje.ebean.Model; import javax.persistence.EmbeddedId; import javax.persistence.Entity; import javax.persistence.Table; @Entity @Table(name = "product_locations") public class DistProductLocation extends Model { public DistProductLocation() {pk = new DistProductLocationsPK(); } public static Finder<DistProductLocationsPK, DistProductLocation> find = new Finder<>("dist",DistProductLocation.class); @EmbeddedId public DistProductLocationsPK pk; public String destination = ""; public String ipc_method = ""; public String method_options = ""; public String processing; @Override public String toString() { return "DistProductLocation{" + "pk=" + pk + ", processing='" + processing + '\'' + '}'; } }