Hi Simon, 
I forgot to paste package declarations, I'm sorry...
This is the complete code for both classes:

package contrats;

import java.io.Serializable;

public class Avenant implements Serializable{

        /**
         * 
         */
        private static final long serialVersionUID = -4086312879555658070L;

        private long id;

        private String commentair;
        
        private TypeAvenant type;
        
        public long getId() {
                return id;
        }
        public void setId(long id) {
                this.id = id;
        }
        public String getCommentair() {
                return commentair;
        }
        public void setCommentair(String commentair) {
                this.commentair = commentair;
        }
        public TypeAvenant getType() {
                return type;
        }
        public void setType(TypeAvenant type) {
                this.type = type;
        }

}

and 

package contrats;

public class AvenantAdh extends Avenant {

        /**
         * 
         */
        private static final long serialVersionUID = 7076974968473202208L;
        private Adhesion adhesion;
        
        public Adhesion getAdhesion() {
                return adhesion;
        }
        public void setAdhesion(Adhesion adhesion) {
                this.adhesion = adhesion;
        }
  
}


On lun., 2011-04-11 at 17:31 +0100, Simon Nash wrote:
> Antonio De Berardis wrote:
> > On dim., 2011-04-10 at 07:10 +0100, Simon Nash wrote:
> >> Hi Antonio,
> >> Please can you post the Java code for myObj and myObjChild.  Thanks.
> >>
> >>
> > 
> > Hi, thank you for the response.
> > 
> > My code is:
> > 
> > public class Avenant implements Serializable{
> > 
> >     /**
> >      * 
> >      */
> >     private static final long serialVersionUID = -4086312879555658070L;
> > 
> >     private long id;
> > 
> >     private String commentair;
> >     
> >     private TypeAvenant type;
> >     
> >     ...// getters and setters
> > }
> > 
> > and
> > 
> > public class AvenantContr extends Avenant {
> > 
> >     /**
> >      * 
> >      */
> >     private static final long serialVersionUID = -5534459853405874814L;
> >     private ContratCollectif contrat;
> >     
> >     ...// getters and setters
> > }
> > 
> > Antonio
> > 
> > 
> > 
> > 
> Hi Antonio,
> There aren't any Java package declarations in these files.
> Can you try adding package declarations to see if that makes
> any difference to the problem?
> 
>    Simon
> 
> 

Reply via email to