universe@38: /* universe@38: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. universe@38: * universe@38: * Copyright 2018 Mike Becker. All rights reserved. universe@38: * universe@38: * Redistribution and use in source and binary forms, with or without universe@38: * modification, are permitted provided that the following conditions are met: universe@38: * universe@38: * 1. Redistributions of source code must retain the above copyright universe@38: * notice, this list of conditions and the following disclaimer. universe@38: * universe@38: * 2. Redistributions in binary form must reproduce the above copyright universe@38: * notice, this list of conditions and the following disclaimer in the universe@38: * documentation and/or other materials provided with the distribution. universe@38: * universe@38: * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" universe@38: * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE universe@38: * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE universe@38: * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE universe@38: * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR universe@38: * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF universe@38: * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS universe@38: * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN universe@38: * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) universe@38: * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE universe@38: * POSSIBILITY OF SUCH DAMAGE. universe@38: * universe@38: */ universe@37: package de.uapcore.lightpit.entities; universe@37: universe@37: import java.util.Objects; universe@37: universe@37: public class Project { universe@37: universe@37: private final int id; universe@37: private String name; universe@37: private String description; universe@37: private String repoUrl; universe@37: private User owner; universe@37: universe@37: public Project(int id) { universe@37: this.id = id; universe@37: } universe@37: universe@37: public int getId() { universe@37: return id; universe@37: } universe@37: universe@37: public String getName() { universe@37: return name; universe@37: } universe@37: universe@37: public void setName(String name) { universe@37: this.name = name; universe@37: } universe@37: universe@37: public String getDescription() { universe@37: return description; universe@37: } universe@37: universe@37: public void setDescription(String description) { universe@37: this.description = description; universe@37: } universe@37: universe@37: public String getRepoUrl() { universe@37: return repoUrl; universe@37: } universe@37: universe@37: public void setRepoUrl(String repoUrl) { universe@37: this.repoUrl = repoUrl; universe@37: } universe@37: universe@37: public User getOwner() { universe@37: return owner; universe@37: } universe@37: universe@37: public void setOwner(User owner) { universe@37: this.owner = owner; universe@37: } universe@37: universe@37: @Override universe@37: public boolean equals(Object o) { universe@37: if (this == o) return true; universe@37: if (o == null || getClass() != o.getClass()) return false; universe@37: Project project = (Project) o; universe@37: return id == project.id; universe@37: } universe@37: universe@37: @Override universe@37: public int hashCode() { universe@37: return Objects.hash(id); universe@37: } universe@37: }