Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Critical Critical
    • Resolution: Duplicate
    • Affects Version/s: 1.0.3
    • Fix Version/s: None
    • Component/s: hibernate
    • Labels:
      None
    • Number of attachments :
      0

      Description

      Hello,

      I have just started using XDoclet2, and I have ran into trouble: all the generated properties in hbm.xml files contain access="method".
      Example:

      <property name="name" not-null="true" length="20" access="method" unique="true"/>

      The problem is that when executing my program, I get the following exception:

      nested exception is org.hibernate.MappingException: could not find PropertyAccessor class: method
      org.hibernate.MappingException: could not find PropertyAccessor class: method

      Looking in Hibernate Doc, I saw that the "access" element has to be field, property or ClassName. So why does XDoclet2 generates access="method"?

        Issue Links

          Activity

          Hide
          Konstantin Pribluda added a comment -

          This issue was solved as XDP-122. Snapshot is available in codehaus repository
          ( 1.0.4-SNAPSHOT )

          Problem came from access method change from "method" to "property" in HB3

          Now there is either explcit access setting, or implicit field setting if tags are placed on field.

          Show
          Konstantin Pribluda added a comment - This issue was solved as XDP-122 . Snapshot is available in codehaus repository ( 1.0.4-SNAPSHOT ) Problem came from access method change from "method" to "property" in HB3 Now there is either explcit access setting, or implicit field setting if tags are placed on field.

            People

            • Assignee:
              Unassigned
              Reporter:
              Cristian Spiescu
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: