Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
IntegrationProjet
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
5
Issues
5
List
Boards
Labels
Service Desk
Milestones
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abbenhoumi
IntegrationProjet
Commits
d1286988
Commit
d1286988
authored
Nov 27, 2019
by
benhoumine
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
v1
parent
80277151
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
322 additions
and
2 deletions
+322
-2
src/main/java/isima/F2/RamassagePoubleDepotApplication.java
src/main/java/isima/F2/RamassagePoubleDepotApplication.java
+1
-1
src/main/java/isima/F2/model/Action.java
src/main/java/isima/F2/model/Action.java
+30
-0
src/main/java/isima/F2/model/Avertissement.java
src/main/java/isima/F2/model/Avertissement.java
+31
-0
src/main/java/isima/F2/model/Camion.java
src/main/java/isima/F2/model/Camion.java
+70
-0
src/main/java/isima/F2/model/Employe.java
src/main/java/isima/F2/model/Employe.java
+71
-0
src/main/java/isima/F2/model/Poubelle.java
src/main/java/isima/F2/model/Poubelle.java
+61
-0
src/main/java/isima/F2/model/Raison.java
src/main/java/isima/F2/model/Raison.java
+43
-0
src/main/java/isima/F2/model/TypeAction.java
src/main/java/isima/F2/model/TypeAction.java
+5
-0
src/main/resources/application.properties
src/main/resources/application.properties
+10
-1
No files found.
src/main/java/isima/F2/RamassagePoubleDepotApplication.java
View file @
d1286988
package
isima.
F
2
;
package
isima.
f
2
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
...
...
src/main/java/isima/F2/model/Action.java
0 → 100644
View file @
d1286988
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
;
}
}
src/main/java/isima/F2/model/Avertissement.java
0 → 100644
View file @
d1286988
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
;
}
}
src/main/java/isima/F2/model/Camion.java
0 → 100644
View file @
d1286988
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
+
"]"
;
}
}
src/main/java/isima/F2/model/Employe.java
0 → 100644
View file @
d1286988
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
+
"]"
;
}
}
src/main/java/isima/F2/model/Poubelle.java
0 → 100644
View file @
d1286988
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
+
"]"
;
}
}
src/main/java/isima/F2/model/Raison.java
0 → 100644
View file @
d1286988
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
+
"]"
;
}
}
src/main/java/isima/F2/model/TypeAction.java
0 → 100644
View file @
d1286988
package
isima.f2.model
;
public
class
TypeAction
{
}
src/main/resources/application.properties
View file @
d1286988
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment