hellboy530
Messages postés9Date d'inscriptiondimanche 23 juillet 2006StatutMembreDernière intervention18 novembre 2009
-
17 nov. 2009 à 12:38
hellboy530
Messages postés9Date d'inscriptiondimanche 23 juillet 2006StatutMembreDernière intervention18 novembre 2009
-
17 nov. 2009 à 22:30
Bonjour,
j'ai besoin d'aide , j'ai un problème au niveau des ejb Stateless. (statefull a marché)
j'utilise : eclipe galileo + jboss v 4.0
qd je déploie a nouveau le projet, jboss ne crée pas la table produit :
j'ai créé 2 class
produit et GestionDeStockBean
et une interface GestionDeStock
___________________________________________________________________
[b]class produit :
/b import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.Id;
@Entity
public class Produit implements Serializable {
@Id
private String id;
private String libelle;
private int quantiteEnStock;
public Produit() {
super();
}
public Produit(String id) {
this.id = id;
}
public Produit(String id, String libelle, int quantiteEnStock) {
this.id = id;
this.libelle = libelle;
this.quantiteEnStock = quantiteEnStock;
}
public String getLibelle() {
return libelle;
}
public void setLibelle(String libelle) {
this.libelle = libelle;
}
public int getQuantiteEnStock() {
return quantiteEnStock;
}
public void setQuantiteEnStock(int quantiteEnStock) {
this.quantiteEnStock = quantiteEnStock;
}
@Remote
public interface GestionDeStock {
public void ajouter(Produit produit);
public Produit rechercherProduit(String id);
public List listerTousLesProduits();
}
________________________________________________________________________
class GestionDeStockBean :