Uploaded image for project: 'EJB 3.0'
  1. EJB 3.0
  2. EJBTHREE-172

PetDAOBean createCat() creates Dog instance

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • EJB 3.0 Beta 1
    • Preview 5
    • docs
    • None

      jboss-EJB-3.0_Preview_5\docs\tutorial\singleinheritance\src\org\jboss\tutorial\singleinheritance\bean\PetDAOBean.java has:

      public void createCat(String name, double weight, int lives)

      { Dog dog = new Dog(); dog.setName(name); dog.setWeight(weight); dog.setNumBones(lives); manager.persist(dog); }

      where is creating a new Dog instance and NOT Cat.

      Same for the tableperinheritance and joininheritance.

            kkhan1@redhat.com Kabir Khan
            tom.elrod_jira Tom Elrod (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: