1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
| @Entity
@Table(name = "agence")
@NamedQueries({
@NamedQuery(name = "Agence.findAll", query = "SELECT a FROM Agence a"),
@NamedQuery(name = "Agence.findByIdAgence", query = "SELECT a FROM Agence a WHERE a.idAgence = :idAgence"),
@NamedQuery(name = "Agence.findByIdDirecteur", query = "SELECT a FROM Agence a WHERE a.idDirecteur = :idDirecteur"),
@NamedQuery(name = "Agence.findByAdresseAgence", query = "SELECT a FROM Agence a WHERE a.adresseAgence = :adresseAgence"),
@NamedQuery(name = "Agence.findByCodePostalAgence", query = "SELECT a FROM Agence a WHERE a.codePostalAgence = :codePostalAgence"),
@NamedQuery(name = "Agence.findByVilleAgence", query = "SELECT a FROM Agence a WHERE a.villeAgence = :villeAgence")})
public class Agence implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Basic(optional = false)
@Column(name = "idAgence")
private Integer idAgence;
@Column(name = "idDirecteur")
private Integer idDirecteur;
@Column(name = "adresseAgence")
private String adresseAgence;
@Column(name = "codePostalAgence")
private String codePostalAgence;
@Column(name = "villeAgence")
private String villeAgence;
public Agence() {
}
.........
} |
Partager