LigneAction.java 1.03 KB
package ejb.entites;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.Table;


@Table (name="t_ligne_action") @Entity
public class LigneAction implements java.io.Serializable {
  private static final long serialVersionUID = 1L;
  
  public LigneAction() {}
  
  @Id @GeneratedValue private int id ;
  private int nombre ;
  @ManyToOne private Compte proprietaire ;
  @ManyToOne(fetch=FetchType.EAGER) private Action action ;
  
  
  public int getId() { return id; }
  public void setId(int id) { this.id = id; }

  public int getNombre() { return nombre; }
  public void setNombre(int nombre) {
	this.nombre = nombre;
  }
  
  public Compte getProprietaire() {
	return proprietaire;
  }
  public void setProprietaire(Compte proprietaire) {
	this.proprietaire = proprietaire;
  }
  
  public Action getAction() {
	return action;
  }
  public void setAction(Action action) {
	this.action = action;
  }

}