Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      Enumerations are not supported by the hibernate cartridge. Hibernate supports enumerations provided the enumeration implements net.sf.hibernate.PersistentEnum. The enumeration generated by Java cartridge should not implement this interface as it incures a dependency on the hibernate framework.

      I have added another template to hibernate cartridge that generates a enumeration_hiberate class which implements net.sf.hibernate.PersistentEnum and extends the normal enumeration. Only works with enumerations that have int attributes. The persistent enumeration is identified by marking the class with <<Enumeration>> & <<Entity>>.

      Only generates the enumeration_hibernate if the stereotype is <<Enumeration>> & <<Entity>>. I don't generate the normal Entity and factory if <<Enumeration>>.

      I have done the modifications and testing it. Once I am happy I will submit.

        Attachments

          Activity

            People

            • Assignee:
              overheat overheat
              Reporter:
              davincoleman Davin Coleman
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: