[jbossseam-issues] [JBoss JIRA] Commented: (JBSEAM-843) Generate application from existing entities

Max Andersen (JIRA) jira-events at lists.jboss.org
Mon Mar 26 07:55:03 EDT 2007


    [ http://jira.jboss.com/jira/browse/JBSEAM-843?page=comments#action_12357285 ] 
            
Max Andersen commented on JBSEAM-843:
-------------------------------------

I got a patch for this now.

Currently it adds "generate-ui" as a task that uses jpaconfiguration to run view generation from compiled classes instead of the reverse engineered model. ant "generates-entities" still both do reverse engineering and generate-ui. 

The advantages of this is that you now can actually refer to the entities classes while rendering the ui (needed for new-query functionallity)

The "downside" is that the generated code have to be compilable and be mapped correct/valid before the view can be generated. 

Because of the above I haven't just comitted this to seam since I don't have the time to test if common combinations will work.

chicken-egg issues  while doing this patch:

1) the hibernate/ejb3 libraries in seam seem to be "old" since they don't include the method from Ejb3Configuration to build a Configuration without creating a sessionfactory. (Workaround: include newer hibernate/annotations libs that does support it in seam-gen/lib)

2) to run a jpaconfiguration requires the code in the project to be compiled (Workaround: call from seam-gen to the project's "jar" task)



> Generate application from existing entities
> -------------------------------------------
>
>                 Key: JBSEAM-843
>                 URL: http://jira.jboss.com/jira/browse/JBSEAM-843
>             Project: JBoss Seam
>          Issue Type: Feature Request
>          Components: Tools
>    Affects Versions: 1.1.6.GA
>            Reporter: Kent Lam
>         Assigned To: Max Andersen
>            Priority: Minor
>
> Would it be great that seam-gen will generate crud pages and classes for an existing Entity class,just like seam-gen generate the crud pages,classes and entity classes from database. 
> Thanks

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the seam-issues mailing list