3 Replies Latest reply on Mar 2, 2011 1:53 AM by allforjava

    Hibernate: Code Generator: Custom Properties !

    allforjava

      Hi,

       

      Towards Seam project creation a launch configuration is setup @ 'Hibernate Code Generation Configuration' for code generation. Under 'Exporters' tab for each hbm-template properties can be defined. For Seam generated launch config, a property is available 'actionPackage'. The screenshot is attached under this post.

       

      1. However, towards manual creation of new 'hibernate code generation' launch file, the property 'actionPackage' is not available. Even manual entry is not allowed to the list. Please suggest as how this can be done.

       

      2. Further, are there any tags similar to '{class-name}' used in propertie's values?

       

      Thank you for the same in advance!

        • 1. Hibernate: Code Generator: Custom Properties !
          allforjava

          Ans 1: Able to save and edit the configuration through  my-code-generator.launch file. Able to generate the seam related Home and List componenets for entities.

           

          Ans 2: ?

           

          3. Any books related to customizing/utilizing hibernate-tools-...jar full-fledge.

          • 2. Hibernate: Code Generator: Custom Properties !
            jpeterka

            Hi Prathamesh,

             

            Issue1: if actionPackage is not predefined in combobox you're free to edit it there because combobox is NOT read-only

            Issue2: there are predefined varibales {class-name},{package-name},{build.dir},{destdir}. Please see some examples in doc (http://docs.jboss.org/tools/)

            Issue3: I'm not sure if there is any really comprehensive book for hibernate tools, some things are refered for example in JBoss Tools 3 Developers Guide but it's not probably as detailed as you need

             

            -- Jirka

            1 of 1 people found this helpful
            • 3. Re: Hibernate: Code Generator: Custom Properties !
              allforjava

              Thank you, Jiri!

               

              Issue2: there are predefined varibales {class-name},{package-name},{build.dir},{destdir}. Please see some examples in doc (http://docs.jboss.org/tools/)

               

              - I have gone though the docs http://docs.jboss.org/tools/3.2.0.Beta1/en/hibernatetools/html/index.html however unable to find list of pre-defined variables.

               

              Issue3: I'm not sure if there is any really comprehensive book for hibernate tools, some things are refered for example in JBoss Tools 3 Developers Guide but it's not probably as detailed as you need

              Development Team, any comments?

               

              Issue 4: Further also needed the source-code in jar format for hibernate-tools-3.2.4.GA to be used with eclipse. (Note: not using maven/ant based prj). Please assist.

               

              Issue 5: Does hibernate-tools provide any support/ option to copy a file/interface/class? Example: Using <hbmtemplate> generating the implementations based on entities. However there will be no changes to its Interface except the package-name (where it to be moved) which is to be copied.

               

              Thank you in advance!