0 Replies Latest reply on Jan 28, 2005 2:58 PM by Adriano Bonat

    EJB3 Tutorial example with error

    Adriano Bonat Newbie

      Hello, im searching about inheritance and found this:
      http://docs.jboss.org/ejb3/tutorial/singleinheritance/single.html

      So, looking to examples I found this mistake here:
      http://docs.jboss.org/ejb3/tutorial/singleinheritance/src/org/jboss/tutorial/singleinheritance/bean/PetDAOBean.java

      public void createCat(String name, double weight, int lives)
       {
       Dog dog = new Dog();
       dog.setName(name);
       dog.setWeight(weight);
       dog.setNumBones(lives);
       manager.create(dog);
       }
      


      Probably will be created a dog instead a cat.

      Best regards.