Add Driver model
This commit is contained in:
parent
34124c2182
commit
858cc196ad
89
ass1-jpa/src/main/java/dst/ass1/jpa/model/impl/Driver.java
Normal file
89
ass1-jpa/src/main/java/dst/ass1/jpa/model/impl/Driver.java
Normal file
@ -0,0 +1,89 @@
|
||||
package dst.ass1.jpa.model.impl;
|
||||
|
||||
import dst.ass1.jpa.model.*;
|
||||
|
||||
import javax.persistence.*;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.util.Collection;
|
||||
|
||||
@Entity
|
||||
public class Driver implements IDriver {
|
||||
@Id
|
||||
private Long id;
|
||||
private String name;
|
||||
@NotNull
|
||||
private String tel;
|
||||
private Double avgRating;
|
||||
|
||||
@OneToMany
|
||||
private Collection<IMatch> matches;
|
||||
@ManyToOne
|
||||
private IVehicle vehicle;
|
||||
@ManyToMany
|
||||
private Collection<IOrganization> organizations;
|
||||
|
||||
@Override
|
||||
public Collection<IEmployment> getEmployments() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setEmployments(Collection<IEmployment> employments) {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void addEmployment(IEmployment employment) {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public IVehicle getVehicle() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setVehicle(IVehicle vehicle) {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public Long getId() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setId(Long id) {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getName() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setName(String name) {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getTel() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setTel(String tel) {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public Double getAvgRating() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setAvgRating(Double avgRating) {
|
||||
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user