-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
e.elhjoujy
committed
Oct 20, 2023
1 parent
149900d
commit 242805b
Showing
13 changed files
with
355 additions
and
167 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package ma.yc.airafraik.FunctionalTest; | ||
|
||
import ma.yc.airafraik.dao.Impl.VolDaoImpl; | ||
import ma.yc.airafraik.entities.VolEntity; | ||
|
||
import java.util.Collection; | ||
|
||
public class Vol { | ||
public static void main(String[] args) { | ||
|
||
Collection<VolEntity> vols = new VolDaoImpl().consulterVols(); | ||
vols.forEach(volEntity -> { | ||
System.out.println(volEntity.getVol().getId()); | ||
}); | ||
|
||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,31 @@ | ||
package ma.yc.airafraik.entities; | ||
|
||
import jakarta.persistence.Entity; | ||
import jakarta.persistence.Id; | ||
import jakarta.persistence.*; | ||
import lombok.*; | ||
|
||
import java.util.ArrayList; | ||
import java.util.Collection; | ||
|
||
@AllArgsConstructor | ||
@NoArgsConstructor | ||
@Setter | ||
@Getter | ||
@Builder | ||
@Entity | ||
@Table(name = "AVION") | ||
public class AvionEntity { | ||
@Id | ||
private int idAvion; | ||
private int id; | ||
@Column(name = "nom_avion") | ||
private String nomAvion; | ||
|
||
@Column(name = "nomber_place") | ||
private int nombrePlace; | ||
|
||
// @ManyToOne | ||
|
||
// private SocieteAerienneEntity societeAerienneEntity; | ||
@OneToMany | ||
@JoinColumn(name = "avion_id") | ||
Collection <VolEntity> vols = new ArrayList<>(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
.nav-bar-admin{ | ||
display: flex; | ||
justify-content: space-between; | ||
align-items: center; | ||
padding: 0 20px; | ||
gap : 20px; | ||
/*height: 60px;*/ | ||
/*background-color: #fdfcfc;*/ | ||
flex-wrap: wrap; | ||
margin-top: 1rem !important; | ||
} |
Oops, something went wrong.