Grails
  1. Grails
  2. GRAILS-8649

Documentation needed: hibernate plugin is not installed by 'grails create-plugin'

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0 final
    • Fix Version/s: 2.0.2
    • Component/s: Documentation
    • Labels:
      None

      Description

      I've developed over 30 plugins using Grails 1.3.x and I got very strange exceptions related to GORM when I created my first Grails 2.0 plugin.

      "No signature of method: grails.plugins.foo.Bar.save() is applicable for argument types: () values: []"
      Adding a service with 'static transactional = true' resulted in "No bean named 'transactionManager' is defined."

      The solution was simple but I did not find it immediately.

      grails create-plugin does not add the hibernate dependency in BuildConfig.groovy
      grails create-app does

      This must be documented so first-time plugin developers can avoid this kind of problems.
      Both in the "what's new" section and in the plugin developers guide.

        Activity

        Hide
        Bobby Warner added a comment -
        Show
        Bobby Warner added a comment - Pull request – https://github.com/grails/grails-doc/pull/78
        Hide
        Jeff Scott Brown added a comment -

        A clarifying note has been added to the docs (pull request applied).

        Show
        Jeff Scott Brown added a comment - A clarifying note has been added to the docs (pull request applied).

          People

          • Assignee:
            Jeff Scott Brown
            Reporter:
            Goran Ehrsson
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              Last Reviewed:

              Development