[jbosstools-issues] [JBoss JIRA] Created: (JBIDE-1369) Seam Generate Entities creates edit field for @Version annotated fields

Thorsten Kunz (JIRA) jira-events at lists.jboss.org
Mon Nov 26 08:11:18 EST 2007


Seam Generate Entities creates edit field for @Version annotated fields
-----------------------------------------------------------------------

                 Key: JBIDE-1369
                 URL: http://jira.jboss.com/jira/browse/JBIDE-1369
             Project: JBoss Tools
          Issue Type: Bug
    Affects Versions: LATER
            Reporter: Thorsten Kunz
            Priority: Minor


When you have an entity with a @Version annotation present (which is the default if you create it with "Seam Entity") and then run "Seam Generate Entities" on the project and select "use existing entities" the resulting CRUD pages will allow the version field to be edited. So you won't be able to create entities because the set accessor for the version was declared private in the entity. This renders the CRUD pages useless.
I think this field should not be editable in the first place.

Cheers, Thorsten

-- 
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 jbosstools-issues mailing list