2 Replies Latest reply on Jan 16, 2007 6:12 PM by michael.yuan

    Feature Request:  seam crud

    awhitford

      From this movie, I can see how Hibernate Tools can be used to reverse engineer a Seam CRUD application based on a database schema. My main problem is that the Entity beans that it generates aren't always right. (For example, I have two entities: Exchange and Country. There is a Many-To-One relationship between Exchange and Country, and that relationship is OK in the Exchange Entity bean, but the generated Country Entity bean gets a Set member that I do not want because I feel it tightens the coupling.)

      seam generate-entities can be used to do a basic reverse engineering, then I can tweak the entity bean a bit to my liking. Then, I'd like to be able to run something like seam crud to generate a CRUD interface for the entity. Is this possible? Is this on the roadmap?

      Also, it would be great if seam generate-entities accepted a list of database tables rather than having it scan the entire database everytime.

        • 1. Re: Feature Request:  seam crud
          kukeltje

          did you try to generate a full application with seam-gen? crud all the way (imo)

          • 2. Re: Feature Request:  seam crud

            Do you mean to use Seam-gen to generate entity bean classes, CRUD DAO components, as well as web pages in one go? Yes, that would be really neat but we are so overwhelmed with other tasks at this moment. If you guys can give it a try, it would be great. :)

            It is not that hard: just go into seam-gen and add to teh template files and add a new ANT build target. It just takes time. :)