Grails support for DB reverse engineering?

This topic contains 4 replies, has 2 voices, and was last updated by  raydawg2000 1 month, 2 weeks ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #600278 Reply

    raydawg2000
    Participant

    Are there any plans to implement the current DB reverse engineering tools for Grails applications?

    #600296 Reply

    Brian Fernandes
    Moderator

    There are no plans to to generate code for Grails applications. Can you give us an example of the output you would like generated? GORM, GORM for Hibernate?

    Thanks.

    #600360 Reply

    raydawg2000
    Participant

    Hi Brian,
    Yes GORM. The reverse engineering for Grails is a little simpler because all that is needed are Domain classes and the framework handles all the hibernate mappings. So for example a DB table called Application would only need a single Domain class instead of a Domain, DAO and XML Mapping file. Here is an example with one-to-many and many-to-one relationships

    There used to be a plugin for Grails that had this functionality and uses the hibernate-tools library but it stopped being maintained a while ago and the newer Grail releases are not compatible. I figured since MyEclipse uses the same hibernate-tools to generate Java code that maybe it would be possible to expand on that to generate Grails domain classes?

    http://grails-plugins.github.io/grails-db-reverse-engineer/grails3v4/index.html

    #601059 Reply

    Brian Fernandes
    Moderator

    Ray,

    I thought I had replied earlier, apologies.

    Thank you for taking the time to provide the example – gives us a better understanding of what you’d like implemented. The fact that the Grails plugin depends on hibernate-tools will make it easier, but it is still a non trivial task.

    I’ll file this with your details, but to be upfront I don’t see this as something our team will be able to get to in the near future.

    Thank you for sending in the request.

    #601081 Reply

    raydawg2000
    Participant

    Understood, thanks for at least submitting the request for me.

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: Grails support for DB reverse engineering?