1 Reply Latest reply on Nov 17, 2005 8:07 AM by Daniel Campelo

    Specify the names of the beans to generate

    Daniel Campelo Newbie

      I have the need to specify the names that i wish to give to the generated beans via "Hibernate Artifact Generation".

      Is there a way to perform this configuration before the generation is executed?

      This mapping (class-table) may be processed afterwards, by editing the .hbm.xml, but the data base sufers constant updats from time to time so that process is not appreciated, for the configuration file and the corresponding class must all be refreshed.

      PS : This configuration also aplies to the fields of the table.


      Thanx,
      Daniel Campelo

        • 1. Re: Specify the names of the beans to generate
          Daniel Campelo Newbie

          "
          Why doesn't Hibernate have a mapping GUI?

          Because you don't need one. The Hibernate mapping format was designed to be edited by hand; Hibernate mappings are both extremely terse and readable. Sometimes, particularly for casual / new users, GUI tools can be nice. But most of the time they slow you down. Therefore, Hibernate let's you make the decision about your development process. We offer easy to write XML mapping metadata, XDoclet annotations, JDK 5.0 Annotations for the JSR-220 (EJB3) Persistence API, and a toolset available for the Eclipse IDE with editors, wizards, code generation, and reverse-engineering features.
          "

          Just read this from "http://www.hibernate.org/16.html#A8". Hum... I disagree with this. Can give you a comparation with a generator, middlegen, it has an interface, very basic and simple, that alows the developers to specify the name of the class and it's attributes. Very simple to use and it is only necessary to edit it one time. If the data base is changed it's much esier to edit the changes visualy then by code (in a configuration file).

          We should be using the computers and not the other way around... Why complicate when the it can be very simple?