javaeetutorial
  1. javaeetutorial
  2. JAVAEETUTORIAL-143

Need explanation of DTYPE column in dukes-forest.sgm

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 6.0.7-5
    • Fix Version/s: None
    • Component/s: doc
    • Labels:
      None

      Description

      The DTYPE column of the PERSON table doesn't occur in the entity class. What it means is explained in the introductory Persistence chapter of Volume 1 but nowhere in Volume 2. I'm adding some language to the chapter and checking it in and would be grateful if Ian could let me know if corrections are needed.

        Activity

        Hide
        jendrock added a comment -

        The fix is in 6.0.8. In the Entities Project section in http://docs.oracle.com/javaee/6/tutorial/doc/glnrj.html, the description of the Person entity class now reads as follows:

        Person, which defines attributes common to customers and administrators. These attributes are the person's name and contact information, including street and email addresses. The email address has a Bean Validation annotation to ensure that the submitted data is well-formed. The generated table for Person entities also has a DTYPE field that represents the discriminator column. Its value identifies the subclass (Customer or Administrator) to which the person belongs.

        I think that covers it!

        Show
        jendrock added a comment - The fix is in 6.0.8. In the Entities Project section in http://docs.oracle.com/javaee/6/tutorial/doc/glnrj.html , the description of the Person entity class now reads as follows: Person, which defines attributes common to customers and administrators. These attributes are the person's name and contact information, including street and email addresses. The email address has a Bean Validation annotation to ensure that the submitted data is well-formed. The generated table for Person entities also has a DTYPE field that represents the discriminator column. Its value identifies the subclass (Customer or Administrator) to which the person belongs. I think that covers it!

          People

          • Assignee:
            Kim Haase
            Reporter:
            Kim Haase
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: