Created
April 16, 2014 13:46
-
-
Save salimos/10877952 to your computer and use it in GitHub Desktop.
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
package edu.esprit.mariage.domain; | |
import java.io.Serializable; | |
import java.util.Date; | |
import javax.persistence.Entity; | |
import javax.persistence.GeneratedValue; | |
import javax.persistence.GenerationType; | |
import javax.persistence.Id; | |
import javax.persistence.Table; | |
@Entity | |
@Table(name="mariage") | |
public class Mariage implements Serializable{ | |
/** | |
* | |
*/ | |
private static final long serialVersionUID = 1L; | |
int id; | |
Femme idFemme; | |
Homme idHomme; | |
Date date; | |
@Id | |
@GeneratedValue(strategy = GenerationType.IDENTITY) | |
public int getId() { | |
return id; | |
} | |
public void setId(int id) { | |
this.id = id; | |
} | |
public Femme getIdFemme() { | |
return idFemme; | |
} | |
public void setIdFemme(Femme idFemme) { | |
this.idFemme = idFemme; | |
} | |
public Homme getIdHomme() { | |
return idHomme; | |
} | |
public void setIdHomme(Homme idHomme) { | |
this.idHomme = idHomme; | |
} | |
public Date getDate() { | |
return date; | |
} | |
public void setDate(Date date) { | |
this.date = date; | |
} | |
public Mariage(Homme homme, Femme femme,Date date){ | |
this.idHomme = homme; | |
this.idFemme = femme; | |
this.date = date; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment