Commit d1286988 authored by benhoumine's avatar benhoumine

v1

parent 80277151
package isima.F2; package isima.f2;
import org.springframework.boot.SpringApplication; import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.autoconfigure.SpringBootApplication;
......
package isima.f2.model;
import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
@Entity
public class Action implements Serializable{
private static final long serialVersionUID = 1L;
@Id
@GeneratedValue
private Long id ;
public Action() {
super();
}
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
}
package isima.f2.model;
import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
@Entity
public class Avertissement implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@GeneratedValue
private Long id ;
public Avertissement() {
super();
}
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
}
package isima.f2.model;
import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
/***
*
* @author abdelkhalek benhoumine
* Entity de la classe Camion
* Contient les information d'un camion genre : id , matricule , marque ...
*
*/
@Entity
public class Camion implements Serializable{
private static final long serialVersionUID = 1L;
@Id
@GeneratedValue
private Long id;
private String matricule ;
private String marque ;
private Long capaciteMaximal ;
public Camion(Long id, String matricule, String marque, Long capaciteMaximal) {
super();
this.id = id;
this.matricule = matricule;
this.marque = marque;
this.capaciteMaximal = capaciteMaximal;
}
public Camion() {
super();
}
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getMatricule() {
return matricule;
}
public void setMatricule(String matricule) {
this.matricule = matricule;
}
public String getMarque() {
return marque;
}
public void setMarque(String marque) {
this.marque = marque;
}
public Long getCapaciteMaximal() {
return capaciteMaximal;
}
public void setCapaciteMaximal(Long capaciteMaximal) {
this.capaciteMaximal = capaciteMaximal;
}
@Override
public String toString() {
return "Camion [id=" + id + ", matricule=" + matricule + ", marque=" + marque + ", capaciteMaximal="
+ capaciteMaximal + "]";
}
}
package isima.f2.model;
import java.io.Serializable;
import java.util.Date;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
@Entity
public class Employe implements Serializable{
private static final long serialVersionUID = 1L;
@Id
@GeneratedValue
private Long id ;
private String nom ;
private String prenom ;
private Date premierJour ;
private String poste ;
public Employe() {
super();
}
public Employe(Long id, String nom, String prenom, Date premierJour, String poste) {
super();
this.id = id;
this.nom = nom;
this.prenom = prenom;
this.premierJour = premierJour;
this.poste = poste;
}
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getNom() {
return nom;
}
public void setNom(String nom) {
this.nom = nom;
}
public String getPrenom() {
return prenom;
}
public void setPrenom(String prenom) {
this.prenom = prenom;
}
public Date getPremierJour() {
return premierJour;
}
public void setPremierJour(Date premierJour) {
this.premierJour = premierJour;
}
public String getPoste() {
return poste;
}
public void setPoste(String poste) {
this.poste = poste;
}
@Override
public String toString() {
return "Employe [id=" + id + ", nom=" + nom + ", prenom=" + prenom + ", premierJour=" + premierJour
+ ", poste=" + poste + "]";
}
}
package isima.f2.model;
import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
@Entity
public class Poubelle implements Serializable{
private static final long serialVersionUID = 1L;
@Id
@GeneratedValue
private Long id ;
private Long longitude ;
private Long latitude ;
private Long capacity ;
public Poubelle() {
super();
}
public Poubelle(Long id, Long longitude, Long latitude, Long capacity) {
super();
this.id = id;
this.longitude = longitude;
this.latitude = latitude;
this.capacity = capacity;
}
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public Long getLongitude() {
return longitude;
}
public void setLongitude(Long longitude) {
this.longitude = longitude;
}
public Long getLatitude() {
return latitude;
}
public void setLatitude(Long latitude) {
this.latitude = latitude;
}
public Long getCapacity() {
return capacity;
}
public void setCapacity(Long capacity) {
this.capacity = capacity;
}
@Override
public String toString() {
return "Poubelle [id=" + id + ", longitude=" + longitude + ", latitude=" + latitude + ", capacity=" + capacity
+ "]";
}
}
package isima.f2.model;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
@Entity
public class Raison {
@Id
@GeneratedValue
private Long id ;
private String raisontext ;
public Raison() {
super();
}
public Raison(Long id, String raisontext) {
super();
this.id = id;
this.raisontext = raisontext;
}
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getRaisonText() {
return raisontext;
}
public void setRaisonText(String raison) {
this.raisontext = raison;
}
@Override
public String toString() {
return "Raison [id=" + id + ", raison=" + raisontext + "]";
}
}
package isima.f2.model;
public class TypeAction {
}
server.port=8081
## Spring DATASOURCE (DataSourceAutoConfiguration & DataSourceProperties)
spring.datasource.url = jdbc:mysql://localhost:3306/poubelles?useUnicode=true&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=UTC
spring.datasource.username = root
spring.datasource.password =
## Hibernate Properties
# The SQL dialect makes Hibernate generate better SQL for the chosen database
spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.MySQL5InnoDBDialect
# Hibernate ddl auto (create, create-drop, validate, update)
spring.jpa.hibernate.ddl-auto = update
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment