IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Struts 1 Java Discussion :

Ignoring the @NamedQuery [xx] specified on class [jpa.Article] since a query with that name already exists.


Sujet :

Struts 1 Java

Vue hybride

danbreizh Ignoring the @NamedQuery [xx]... 21/03/2015, 14h22
OButterlin Ce qui se passe c'est que tu... 22/03/2015, 10h49
danbreizh suite votre aide 22/03/2015, 12h58
OButterlin Oui, comme les requêtes sont... 22/03/2015, 16h55
danbreizh Je continue, j'espére ne pas... 24/03/2015, 11h53
Message précédent Message précédent   Message suivant Message suivant
  1. #1
    Membre averti
    Homme Profil pro
    R&D
    Inscrit en
    Décembre 2013
    Messages
    32
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : R&D
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Décembre 2013
    Messages : 32
    Par défaut Ignoring the @NamedQuery [xx] specified on class [jpa.Article] since a query with that name already exists.
    Bonjour,

    already exist ... Cette donnée est déjà effectivement utilisée mais dans un autre package.java,

    OU est mon erreur , j'ai 2 tables postgresql ( article & bilan) et je dois afficher une donnée de chacune dans le popup de mon IHM.
    Les données des la tables sont ensuite utilisées dans des tags pour calculs qui sont enregistrés dans la table article.

    GLASSFISH ME DIT CECI : Ignoring the @NamedQuery [Bilanprevisionnel.findByBipDecTauxmargeSurheure] specified on class [jpa.Article] since a query with that name already exists.

    Pourtant j'ai bien mes tables (article & bilan) dans le JPA, je voulais savoir si mon erreur se situe ici ?

    article.java
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    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
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    package jpa;
     
    import java.io.Serializable;
    import java.math.BigDecimal;
    import java.util.Collection;
    import java.util.Date;
    import javax.persistence.Basic;
    import javax.persistence.CascadeType;
    import javax.persistence.Column;
    import javax.persistence.Entity;
    import javax.persistence.FetchType;
    import javax.persistence.GeneratedValue;
    import javax.persistence.GenerationType;
    import javax.persistence.Id;
    import javax.persistence.JoinColumn;
    import javax.persistence.ManyToOne;
    import javax.persistence.NamedQueries;
    import javax.persistence.NamedQuery;
    import javax.persistence.OneToMany;
    import javax.persistence.SequenceGenerator;
    import javax.persistence.Table;
    import javax.persistence.Temporal;
    import javax.persistence.TemporalType;
     
    /**
     * @author XXXXX
     */
    @Entity
    @Table(name = "article", catalog = "xxx", schema = "public")
    @NamedQueries({@NamedQuery(name = "Article.findAll", query = "SELECT a FROM Article a"),
    @NamedQuery(name = "Article.findByArtIntId", query = "SELECT a FROM Article a WHERE a.artIntId = :artIntId"),
    ....
    @NamedQuery(name = "Article.findByArtDecPrix", query = "SELECT a FROM Article a WHERE a.artDecPrix = :artDecPrix"),
    @NamedQuery(name = "Article.findByArtDecCoefnum", query = "SELECT a FROM Article a WHERE a.artDecCoefnum = :artDecCoefnum"),
    @NamedQuery(name = "Article.findByArtDecResultprixventeanalytique", query = "SELECT a FROM Article a WHERE a.artDecResultprixventeanalytique = :artDecResultprixventeanalytique"),
    ..
    // ma table Bilan "ignorée"
    @NamedQuery(name = "Bilan.findByBipDecTauxmarge", query = "SELECT b FROM Bilan b WHERE b.bipDecTauxmarge = :bipDecTauxmarge"),
    ..
     
    public class Article implements Serializable {
        private static final long serialVersionUID = 1L;
        @Id
        @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "article_seq")
        @SequenceGenerator(name = "article_seq", sequenceName = "article_art_int_id_seq", allocationSize = 1)
    ..
        @Basic(optional = false)
        @Column(name = "art_int_id")
        private Integer artIntId;
    ..
    // ici pas de probleme, ça marche avec la donnée de la table article
    @Basic(optional = false)
        @Column(name = "art_dec_coefnum")
        private BigDecimal artDecCoefnum;
    // concerne la donnée de la table bilan qui est ignorée
    @Column(name = "bip_dec_tauxmarge")
       private BigDecimal bipDecTauxmarge;
    ..
      public Article() {
        }
        public Article(Integer artIntId) {
            this.artIntId = artIntId;
        }
    ..
     public Article(Integer artIntId,
                String artVchNom,
    ..
                BigDecimal artDecCoefnum,
                 BigDecimal bipDecTauxmarge,
    ..
        public Article(Integer artIntId,
    ..
                BigDecimal artDecCoefnum,
                 BigDecimal bipDecTauxmarge,
    ..
                Date artDateCreation) {
            this.artIntId = artIntId;
            this......
    // donnée table article
            this.artDecCoefnum = artDecCoefnum;
    // donnée table bilan
            this.bipDecTauxmarge = bipDecTauxmarge ;
        }
     // donnée table article 
      public Integer getArtIntId() {
            return artIntId;
        }
        public void setArtIntId(Integer artIntId) {
            this.artIntId = artIntId;
        }
    //donnée table bilan
        public Integer getBipIntId() {
            return bipIntId;
        }
        public void setBipIntId(Integer bipIntId) {
            this.bipIntId = bipIntId;
        }
    ..
    //donnée table article
        public BigDecimal getArtDecCoefnum() {
            return artDecCoefnumpopup;
        }
        public void setArtDecCoefnum(BigDecimal artDecCoefnum) {
            this.artDecCoefnum = artDecCoefnum;
        }
    //donnée table bilan
        public BigDecimal getBiptDecTauxmarge() {
            return bipDecTauxmarge;
       }
        public void setBipDecTauxmarge(BigDecimal bipDecTauxmarge) {
           this.bipDecTauxmarge = bipDecTauxmarge;
        }
    ..
    pouvez m'aider à comprendre, j'ai déjà fait mes autres codes (tag, action, form, xml,..) et je vais essayer de "re"visiter tout ça ensuite si mon erreur ne se situe pas là.

    Merci par avance. je débute
    dan

  2. #2
    Modérateur
    Avatar de OButterlin
    Homme Profil pro
    Inscrit en
    Novembre 2006
    Messages
    7 313
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations forums :
    Inscription : Novembre 2006
    Messages : 7 313
    Billets dans le blog
    1
    Par défaut
    Ce qui se passe c'est que tu ne peux pas avoir 2 NamedQuery du même nom, même si les définitions sont dans 2 classes séparées.
    Les NamedQuery sont enregistrés dans la PersistenceUnit, d'où le message... sur le deuxième, il te dit juste qu'il a ignoré la définition puisqu'il l'a déjà enregistré.
    Si les 2 requêtes sont les mêmes, supprime la définition dans Article (ça ne t'empêchera pas d'utiliser ce nom de query)
    Si elles sont différentes, alors préfixe la requête dans ta classe Article par "Article" plutôt que "Bilan"
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    @NamedQuery(name = "Bilan.findByBipDecTauxmarge", query = "SELECT b FROM Bilan b WHERE b.bipDecTauxmarge = :bipDecTauxmarge"),
    
    devient
    @NamedQuery(name = "Article.findByBipDecTauxmarge", query = "SELECT b FROM Bilan b WHERE b.bipDecTauxmarge = :bipDecTauxmarge"),
    N'oubliez pas de consulter les FAQ Java et les cours et tutoriels Java

  3. #3
    Membre averti
    Homme Profil pro
    R&D
    Inscrit en
    Décembre 2013
    Messages
    32
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : R&D
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Décembre 2013
    Messages : 32
    Par défaut suite votre aide
    Bonjour,
    tout d'abord je vous remercie, je ne savais pas cela.

    Mais alors il faut aussi que je remplace "Bilan" par "Article" dans tout le @named .. Comme ceci ? :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    à la place de :
    @NamedQuery(name = "Bilan.findByBipDecTauxmarge", query = "SELECT b FROM Bilan b WHERE b.bipDecTauxmarge = :bipDecTauxmarge"),
    je dois pas faire cela aussi  :?:
    @NamedQuery(name = "Article.findByBipDecTauxmarge", query = "SELECT a FROM Article a WHERE a.bipDecTauxmarge = :bipDecTauxmarge"),
    Ça concerne cela aussi le class Article, je dois enlever ce qui est raturé dans le code ci-dessous puisque cela est déjà codé dans bilan.java, ou je ne change rien ? :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    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
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    public class Article implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "article_seq")
    @SequenceGenerator(name = "article_seq", sequenceName = "article_art_int_id_seq", allocationSize = 1)
    @Basic(optional = false)
    @Column(name = "art_int_id")
    private Integer artIntId;
    ..
    @Basic(optional = false)
    @Column(name = "art_dec_coefnum")
    private BigDecimal artDecCoefnum;
     
    <s>@Column(name = "bip_dec_tauxmarge_surheure")
    private BigDecimal bipDecTauxmargeSurheure;:?</s>
    ..
    public Article() {}
    public Article(Integer artIntId) { this.artIntId = artIntId;}
    ..
    public Article(Integer artIntId,
    ..
    BigDecimal artDecCoefnum,
    <s>BigDecimal bipDecTauxmargeSurheure,:?</s>
    ..
    public Integer getArtIntId() {
    return artIntId;
    }
    ..
    public void setArtIntId(Integer artIntId) {
    this.artIntId = artIntId;
    }
    ..
    public BigDecimal getArtDecCoefnum() {
    return artDecCoefnum;
    }
    public void setArtDecCoefnum(BigDecimal artDecCoefnum) {
    this.artDecCoefnum = artDecCoefnum;
    }
    ..
    <s>public BigDecimal getBiptDecTauxmargeSurheure() {:?
    return bipDecTauxmargeSurheure;
    }
    public void setBipDecTauxmargeSurheure(BigDecimal bipDecTauxmargeSurheure) {
    this.bipDecTauxmargeSurheure = bipDecTauxmargeSurheure;
    }</s>
    ..
    @Override
    public int hashCode() {
     int hash = 0;
    hash += (artIntId != null ? artIntId.hashCode() : 0);
    return hash;
    }
    @Override
    public boolean equals(Object object) {
    if (!(object instanceof Article)) {
    return false;
    }
    Article other = (Article) object;
    if ((this.artIntId == null && other.artIntId != null) || (this.artIntId != null && !this.artIntId.equals(other.artIntId))) {
    return false;
     }
    return true;
    }
    @Override
    public String toString() {
     return "jpa.Article[artIntId=" + artIntId + "]";
    }
    }
    Une autre question me vient à l'esprit, dans la validation.xml (ci-dessous), je peux donc mettre ce que je veux en "field property" ( property=tauxmargeanalytique"), celui-ci étant ensuite utilisé dans mon jsp article ?
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    <field property="tauxmargeanalytique"
    depends="required">
    <arg key="errors.bipDecTauxmarge"/>
    </field>
    merci encore de vos explications qui me sont vraiment bien utiles
    dan

  4. #4
    Modérateur
    Avatar de OButterlin
    Homme Profil pro
    Inscrit en
    Novembre 2006
    Messages
    7 313
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations forums :
    Inscription : Novembre 2006
    Messages : 7 313
    Billets dans le blog
    1
    Par défaut
    Citation Envoyé par danbreizh Voir le message
    Bonjour,
    tout d'abord je vous remercie, je ne savais pas cela.

    Mais alors il faut aussi que je remplace "Bilan" par "Article" dans tout le @named .. Comme ceci ? :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    à la place de :
    @NamedQuery(name = "Bilan.findByBipDecTauxmarge", query = "SELECT b FROM Bilan b WHERE b.bipDecTauxmarge = :bipDecTauxmarge"),
    je dois pas faire cela aussi  :?:
    @NamedQuery(name = "Article.findByBipDecTauxmarge", query = "SELECT a FROM Article a WHERE a.bipDecTauxmarge = :bipDecTauxmarge"),
    Oui, comme les requêtes sont différentes, il faut un nom différent

    Citation Envoyé par danbreizh Voir le message
    Ça concerne cela aussi le class Article, je dois enlever ce qui est raturé dans le code ci-dessous puisque cela est déjà codé dans bilan.java, ou je ne change rien ? :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    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
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    public class Article implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "article_seq")
    @SequenceGenerator(name = "article_seq", sequenceName = "article_art_int_id_seq", allocationSize = 1)
    @Basic(optional = false)
    @Column(name = "art_int_id")
    private Integer artIntId;
    ..
    @Basic(optional = false)
    @Column(name = "art_dec_coefnum")
    private BigDecimal artDecCoefnum;
     
    <s>@Column(name = "bip_dec_tauxmarge_surheure")
    private BigDecimal bipDecTauxmargeSurheure;:?</s>
    ..
    public Article() {}
    public Article(Integer artIntId) { this.artIntId = artIntId;}
    ..
    public Article(Integer artIntId,
    ..
    BigDecimal artDecCoefnum,
    <s>BigDecimal bipDecTauxmargeSurheure,:?</s>
    ..
    public Integer getArtIntId() {
    return artIntId;
    }
    ..
    public void setArtIntId(Integer artIntId) {
    this.artIntId = artIntId;
    }
    ..
    public BigDecimal getArtDecCoefnum() {
    return artDecCoefnum;
    }
    public void setArtDecCoefnum(BigDecimal artDecCoefnum) {
    this.artDecCoefnum = artDecCoefnum;
    }
    ..
    <s>public BigDecimal getBiptDecTauxmargeSurheure() {:?
    return bipDecTauxmargeSurheure;
    }
    public void setBipDecTauxmargeSurheure(BigDecimal bipDecTauxmargeSurheure) {
    this.bipDecTauxmargeSurheure = bipDecTauxmargeSurheure;
    }</s>
    ..
    @Override
    public int hashCode() {
     int hash = 0;
    hash += (artIntId != null ? artIntId.hashCode() : 0);
    return hash;
    }
    @Override
    public boolean equals(Object object) {
    if (!(object instanceof Article)) {
    return false;
    }
    Article other = (Article) object;
    if ((this.artIntId == null && other.artIntId != null) || (this.artIntId != null && !this.artIntId.equals(other.artIntId))) {
    return false;
     }
    return true;
    }
    @Override
    public String toString() {
     return "jpa.Article[artIntId=" + artIntId + "]";
    }
    }
    Non, là, on est dans le mapping d'une entité, on fait le lien entre un attribut d'une classe java avec une colonne de base de données

    Citation Envoyé par danbreizh Voir le message
    Une autre question me vient à l'esprit, dans la validation.xml (ci-dessous), je peux donc mettre ce que je veux en "field property" ( property=tauxmargeanalytique"), celui-ci étant ensuite utilisé dans mon jsp article ?
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    <field property="tauxmargeanalytique"
    depends="required">
    <arg key="errors.bipDecTauxmarge"/>
    </field>
    merci encore de vos explications qui me sont vraiment bien utiles
    dan
    Là, je ne sais pas, je n'utilise pas le framework validator mais des contrôles par EJB
    N'oubliez pas de consulter les FAQ Java et les cours et tutoriels Java

  5. #5
    Membre averti
    Homme Profil pro
    R&D
    Inscrit en
    Décembre 2013
    Messages
    32
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : R&D
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Décembre 2013
    Messages : 32
    Par défaut Je continue, j'espére ne pas abuser..
    Bonjour,

    Merci pour vos explications, elles sont simples mais bien compréhensibles.

    Tout cela me conduit vers mon createAction & actionForm, après ma validation.xml, ce je voudrais comprendre :
    Dans ArticleAction & dans ArticleForm, est ce que je dois faire un import ou struts fait le lien directement entre Article et Bilan ? (en gras dans le code ci dessous), la validation de mes champs JSP étant déjà réalisé par validation.xml.

    Voila comment je procède,

    1/ Je valide mon form avec validation.xml
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    <form name="CreateArticleForm">
    ..       
    <field property="coefnum" <!-- property JSP ARTICLE -->
    depends="required">
    <arg key="errors.artDecCoefnum"/> <!-- table Article -->
    </field>
    ..
    <field property="tauxmarge" <!-- property JSP ARTICLE-->
    depends="required">
    <arg key="errors.bip.DecTauxmarge"/> <!-- table Bilan -->
    </field>
    ..

    2 / puis mon Action
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    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
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    package action.xxx.approvisionnement.articles;
    import ejb.connection.RelaisEjb;
    import form.xxx.approvisionnement.articles.CreateArticleForm;
    import java.io.PrintStream;
    import java.math.BigDecimal;
    import java.math.RoundingMode;
    import java.util.List;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import javax.servlet.http.HttpSession;
    import jpa.Article;
    // QUESTION , je dois importer Bilan, si oui, pourquoi ?
    import jpa.Bilan;
    import jpa.Fournisseur;
    ..
    import org.apache.struts.action.ActionForm;
    import org.apache.struts.action.ActionForward;
    import org.apache.struts.action.ActionMapping;
    import org.apache.struts.action.ActionMessage;
    import org.apache.struts.action.ActionMessages;
    import service.xxx.approvisionnement.articles.GestionArticlesRemote;
    
    public class CreateArticleAction extends Action {
    private static final String SUCCESS = "success";
    private static final String LOGIN = "login";
    
    public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {
    if(request.getSession().getAttribute("logged") != null) {
    System.out.println("Enregistrement de l'article ");
    RelaisEjb leRelais = new RelaisEjb();
    GestionArticlesRemote remote = (GestionArticlesRemote)leRelais.getRemote("java:comp/env/GestionArticlesBean");
    CreateArticleForm f = (CreateArticleForm)form;
    
    if(remote.checkUniqueArticle(Integer.parseInt(f.getIdFournisseur()), f.getReference())) {
    Article art = new Article();
    art.setArtVchNom(f.getDesignation());
    ...
    if(f.getCoefnum().length() > 0) { // entité Article  & lien property validation.xml
    BigDecimal txcoefnum = new BigDecimal(f.getCoefnum()).setScale(2, RoundingMode.HALF_DOWN);
    art.setArtDecCoefnum(txcoefnum);
    }
    ..
    if(f.getTauxmarge() != null) { // entité Bilan & lien property validation.xml
    BigDecimal txmarge = new BigDecimal(f.getTauxmarge()).setScale(2, RoundingMode.HALF_DOWN);
    art.setBipDecTauxmarge(txmarge);
    }
    ..
    return mapping.findForward("login");
    ..


    3 / et mon Form
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    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
    30
    31
    32
    package form.xxx.approvisionnement.articles;
    ..
    import jpa.Article;
    // QUESTION , je dois importer Bilan comme mon JPA Fournisseur(liste) ?
    import jpa.Bilan;
    ..
    import jpa.Fournisseur;
    ..
    public class CreateArticleForm extends ActionForm {
    private String idFournisseur;
    ..
    private String coefnum; <!-- validation.xml OK-->
    
    private String tauxmarge; <!-- validation.xml OK-->
    ..
    public String getIdArticle() {
    return this.idArticle;
    }
    .. 
    public String getCoefnum() { // mon coef Table ARTICLE >> suite validation.xml
     return this.coefnum;
    }
    public void setCoefnum(String coefnum) {
    this.coefnum = coefnum;
    }
    ..
    public String getTauxmarge() { // ma donnée table BILAN >>  suite validation.xml
    return this.tauxmarge;
    }
    public void setTauxmarge(String tauxmarge) {
    this.tauxmarge = tauxmarge;
    }
    Je vous remercie, une fois que j'en aurai compris le principe de ce codage, je pourrai faire les autres.
    Struts est puissant, il faut juste tout comprendre en même temps, sinon..., ce qui fait que sur les forums ça "tourne' très rapidement à des complications qui se surajoutent les unes aux autres
    dan

  6. #6
    Modérateur
    Avatar de OButterlin
    Homme Profil pro
    Inscrit en
    Novembre 2006
    Messages
    7 313
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations forums :
    Inscription : Novembre 2006
    Messages : 7 313
    Billets dans le blog
    1
    Par défaut
    Si tu dois faire les imports ? Je ne comprends pas la question...

    A la louche, et dans le doute, je dirais oui si tu utilises la classe, sinon, non...
    N'oubliez pas de consulter les FAQ Java et les cours et tutoriels Java

Discussions similaires

  1. Réponses: 5
    Dernier message: 17/02/2013, 16h59
  2. Réponses: 2
    Dernier message: 16/07/2010, 10h04
  3. ORA-12154: TNS:Could not resolve the connect identifier specified
    Par dydy12 dans le forum Connexions aux bases de données
    Réponses: 0
    Dernier message: 02/01/2010, 09h32
  4. Réponses: 2
    Dernier message: 06/04/2009, 09h16
  5. (macosX,eclipse 3.4) classe JPA non trouvée pas un EJB
    Par olivier57b dans le forum Glassfish et Payara
    Réponses: 16
    Dernier message: 17/01/2009, 22h32

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo