10 Replies Latest reply on Sep 24, 2009 9:32 AM by maxandersen

    Jboss Tools for Seam

    allforjava

      Dear Team,

      Request: If this post is related to any other catagory of Jboss forum, please move it. Regret any inconvenience caused.

      Is there any option [Jboss Tools] to generate followings through eclipse:

      1. Generate only selective Seam Entity/Beans/Components from database. Instead of 'seam-gen'

      2. Generate specific views [list/home/edit..etc] from seam Entity/components.

      3. Create modules for seam projects (instead of projects in Eclipse workspace). With support for dev and prod environments as seam-gen console option.

      Thank you in advance.

      Details: Eclipse.3.4, Seam 2.1.2, Jboss Tool 3.x,RF.3.1.3
      Reference: http://seamframework.org/Community/JBossToolsEclipse

        • 1. Re: Jboss Tools for Seam
          maxandersen

           

          "allforjava" wrote:

          1. Generate only selective Seam Entity/Beans/Components from database. Instead of 'seam-gen'


          We support both generation from database and entities.

          If you by selective mean generate from a subset of the current entities then that is not available yet.


          2. Generate specific views [list/home/edit..etc] from seam Entity/components.


          You mean only generate list and not home/edit and vice versa ?

          No - what is your usecase if you have the feature from above ?


          3. Create modules for seam projects (instead of projects in Eclipse workspace).

          Eclipse workspace makes no difference and you can point to a separate location that is not inside the workspace.


          With support for dev and prod environments as seam-gen console option.


          We don't have specific support for this since the IDE cannot handle "dynamic filtering" to get complete files.

          You can of course just create that if you want.



          • 2. Re: Jboss Tools for Seam
            allforjava

            Thank you Max, for the reply.

            We support both generation from database and entities.

            If you by selective mean generate from a subset of the current entities then that is not available yet.


            I meant generation of only entities/components without their views. Did you meant the same?
            a. To restrict only view generation for some components/Entities. Instead of deleting each time.
            b. Where I need only reflect modification in entities/components.
            c. For SQL2000 when selecting the subset [new/modified tables] the system tables are also picked-up.

            You mean only generate list and not home/edit and vice versa ?
            No - what is your usecase if you have the feature from above ?


            No. It needs an elaboration. Jboss Tools the options are available to create new Seam Entity/Action/Form.
            However there is no option to use existing entity/component to create the view. If wrong please correct.

            3. I was expecting as seam-modules for seam-project, similary as NetBeans has modules for java projects. However, how I need to proceed.

            Need: The way I do/work is, create an Entity with required mappings/associations. Forward engg with hibernate to create tables.
            And now expecting to generate only views with exisitng Entities/Components.
            Problem: If I use the 'seam-gen' the mappings/associations are modified to defaults.
            Benefits: No need to bother about database related data-types, fiddle with relationships. All need to take is how my Entity should be
            and required views for it.
            If there is a alternate way to do this using exisitng option, please guide. Thank you for your patience.

            • 3. Re: Jboss Tools for Seam
              allforjava

              Thank you Max, for the reply.

              We support both generation from database and entities.

              If you by selective mean generate from a subset of the current entities then that is not available yet.


              I meant generation of only entities/components without their views. Did you meant the same?
              a. To restrict only view generation for some components/Entities. Instead of deleting each time.
              b. Where I need only reflect modification in entities/components.
              c. For SQL2000 when selecting the subset [new/modified tables] the system tables are also picked-up.
              d. Further page.xml are not generated for the components.

              You mean only generate list and not home/edit and vice versa ?
              No - what is your usecase if you have the feature from above ?


              No. It needs an elaboration. Jboss Tools the options are available to create new Seam Entity/Action/Form.
              However there is no option to use existing entity/component to create the view. If wrong please correct.

              3. I was expecting as seam-modules for seam-project, similary as NetBeans has modules for java projects. However, how I need to proceed.

              Need: The way I do/work is, create an Entity with required mappings/associations. Forward engg with hibernate to create tables.
              And now expecting to generate only views with exisitng Entities/Components.
              Problem: If I use the 'seam-gen' the mappings/associations are modified to defaults.
              Benefits: No need to bother about database related data-types, fiddle with relationships. All need to take is how my Entity should be
              and required views for it.
              If there is a alternate way to do this using exisitng option, please guide. Thank you for your patience.

              • 4. Re: Jboss Tools for Seam
                akazakov

                 

                "allforjava" wrote:
                No. It needs an elaboration. Jboss Tools the options are available to create new Seam Entity/Action/Form.
                However there is no option to use existing entity/component to create the view. If wrong please correct.

                We don't have any Wizard to create a view for alrady existing Entity. But you would use Create New Entity Wizard and set already existing Entity class name there. But now our wizard owerwrites existing resources. It's easy to fix. So as workaround user will be able to point the wizard on already existing Entity and ignoring warnings generate missing resources (home objects, view, list, ...). I'll add it to JIRA.

                • 5. Re: Jboss Tools for Seam
                  akazakov
                  • 6. Re: Jboss Tools for Seam
                    maxandersen

                     

                    "allforjava" wrote:
                    Thank you Max, for the reply.

                    We support both generation from database and entities.

                    If you by selective mean generate from a subset of the current entities then that is not available yet.


                    I meant generation of only entities/components without their views. Did you meant the same?


                    You can use normal Hibernate Tools pojo generation for generating Entities if you want.


                    c. For SQL2000 when selecting the subset [new/modified tables] the system tables are also picked-up.


                    I don't understand what you mean here. What system tables are being picked up ? We only pick that up if you have not limited the generation to a specific schema (that aren't the system one ;)


                    d. Further page.xml are not generated for the components.


                    What you can do is go to Hibernate Tools code generation launch config, copy it and remove the generation steps you don't want.

                    Then run that launch config and it will only generate for the bits and pieces you wish for.


                    You mean only generate list and not home/edit and vice versa ?
                    No - what is your usecase if you have the feature from above ?


                    No. It needs an elaboration. Jboss Tools the options are available to create new Seam Entity/Action/Form.
                    However there is no option to use existing entity/component to create the view. If wrong please correct.


                    No, that is correct.


                    3. I was expecting as seam-modules for seam-project, similary as NetBeans has modules for java projects. However, how I need to proceed.


                    I don't understand what you mean by "seam-modules for seam-project" ?


                    Need: The way I do/work is, create an Entity with required mappings/associations. Forward engg with hibernate to create tables.
                    And now expecting to generate only views with exisitng Entities/Components.
                    Problem: If I use the 'seam-gen' the mappings/associations are modified to defaults.
                    Benefits: No need to bother about database related data-types, fiddle with relationships. All need to take is how my Entity should be
                    and required views for it.
                    If there is a alternate way to do this using exisitng option, please guide. Thank you for your patience.



                    • 7. Re: Jboss Tools for Seam
                      allforjava

                      Thank you Akazakov, for the ticket in JIRA.

                      And Max, Thank you for speedy reply.

                      I don't understand what you mean by "seam-modules for seam-project" ?
                      Here, an example might clarify the details.

                      1. What I concluded/assumed that most of the web-application needs:
                      a. Authentication+Authorization=Security
                      b. Mail service
                      c. Forum/Blog

                      So whenever I create a new Seam Project. I need to copy the related code (from already developed seam project) and deploy as single war file to run.

                      Instead I'm expecting that these service/feature are to provided as pluggable modules for a seam project.
                      Which can be modified, built, deployed and tested independently of other modules. Once these/modules are running can interact or been used by other modules or core project.

                      So is there any support from Jboss Tools for Eclipse IDE, to build projects modularly that are pluggable. Regret any inconveninet use of terminologies-modular/seam-module/seam-project.

                      2. Please confirm whether my approach is the right. The way I do/work is, create an Entity with required mappings/associations. Forward engg with hibernate to create tables. And now expecting to generate only views with exisitng Entities/Components. The problem, if I use the 'seam-gen' to generate views
                      the mappings/associations are modified to defaults. Which I dont want.

                      I don't understand what you mean here. What system tables are being picked up ? We only pick that up if you have not limited the generation to a specific schema (that aren't the system one ;)


                      3. The schema for system tables and my tables is 'dbo'. I guess that is creating a mess. However thank you for the details.

                      • 8. Re: Jboss Tools for Seam
                        maxandersen

                         

                        "allforjava" wrote:
                        Thank you Akazakov, for the ticket in JIRA.

                        And Max, Thank you for speedy reply.

                        I don't understand what you mean by "seam-modules for seam-project" ?
                        Here, an example might clarify the details.

                        1. What I concluded/assumed that most of the web-application needs:
                        a. Authentication+Authorization=Security
                        b. Mail service
                        c. Forum/Blog

                        So whenever I create a new Seam Project. I need to copy the related code (from already developed seam project) and deploy as single war file to run.


                        eh ? Java have .jar files to handle that ;)

                        Create a utility jar project and add it as a dependency in the war project and it will be included.


                        Instead I'm expecting that these service/feature are to provided as pluggable modules for a seam project.
                        Which can be modified, built, deployed and tested independently of other modules. Once these/modules are running can interact or been used by other modules or core project.


                        yes - I don't see any tool related issue here as long as you create projects for these modules (or include them as .jar's) then you should be fine.


                        So is there any support from Jboss Tools for Eclipse IDE, to build projects modularly that are pluggable. Regret any inconveninet use of terminologies-modular/seam-module/seam-project.


                        Yes - look at the EAR project, it consists of multiple modules (war, jar and ear) and you can add more of them if you want to.



                        2. Please confirm whether my approach is the right. The way I do/work is, create an Entity with required mappings/associations. Forward engg with hibernate to create tables. And now expecting to generate only views with exisitng Entities/Components. The problem, if I use the 'seam-gen' to generate views
                        the mappings/associations are modified to defaults. Which I dont want.


                        seam-gen has support for just generating the UI part too. seam generate-ui I think ?


                        I don't understand what you mean here. What system tables are being picked up ? We only pick that up if you have not limited the generation to a specific schema (that aren't the system one ;)


                        3. The schema for system tables and my tables is 'dbo'. I guess that is creating a mess. However thank you for the details.



                        • 9. Re: Jboss Tools for Seam
                          allforjava

                          Hi Max, not expected such active+healthy conversation. Thank you.

                          eh ? Java have .jar files to handle that ;)

                          Create a utility jar project and add it as a dependency in the war project and it will be included.


                          I agree to it. However during development phase either I need to create multiple projects OR club everything in single projects before jaring them [fidiling with dependencies]. I have just gave an example for the need of modularity. And not as my only requirement.

                          I'm just a beginner to J2EE. I'm sure that the Jboss Team will make a right decision towards modularity. To be or Not to be.

                          seam-gen has support for just generating the UI part too. seam generate-ui I think ?


                          Does Eclipe IDE plugin has this option? Or can I use the console based command 'generate ui' to have views for Eclipse IDE created Seam Project. I doubt.

                          • 10. Re: Jboss Tools for Seam
                            maxandersen

                             

                            "allforjava" wrote:
                            Hi Max, not expected such active+healthy conversation. Thank you.

                            eh ? Java have .jar files to handle that ;)

                            Create a utility jar project and add it as a dependency in the war project and it will be included.


                            I agree to it. However during development phase either I need to create multiple projects OR club everything in single projects before jaring them [fidiling with dependencies]. I have just gave an example for the need of modularity. And not as my only requirement.


                            I'm not sure what you are saying here ? You want modularity but you dont want to fiddle with dependencies ? How can you get one without the other ?


                            seam-gen has support for just generating the UI part too. seam generate-ui I think ?


                            Does Eclipe IDE plugin has this option? Or can I use the console based command 'generate ui' to have views for Eclipse IDE created Seam Project. I doubt.


                            As said a few times now, Generate entities in JBoss Tools has support to choose "from entities" and not just "from database".