[hibernate-issues] [Hibernate-JIRA] Updated: (METAGEN-58) Subsequent processing rounds are trying to reprocess Entities that are already processed, this causes an error.

Hardy Ferentschik (JIRA) noreply at atlassian.com
Thu Mar 10 04:40:09 EST 2011


     [ http://opensource.atlassian.com/projects/hibernate/browse/METAGEN-58?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hardy Ferentschik updated METAGEN-58:
-------------------------------------

    Fix Version/s: 1.1.2.Final

> Subsequent processing rounds are trying to reprocess Entities that are already processed, this causes an error.
> ---------------------------------------------------------------------------------------------------------------
>
>                 Key: METAGEN-58
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/METAGEN-58
>             Project: Hibernate Metamodel Generator
>          Issue Type: Bug
>          Components: processor
>    Affects Versions: 1.1.1.Final
>         Environment: jdk1.6.0_23, Eclipse 3.6, Maven 2, Hibernate version 3.6.1.Final, MS SQL 2005.
>            Reporter: Viet Trinh
>            Assignee: Hardy Ferentschik
>            Priority: Minor
>             Fix For: 1.1.2.Final
>
>
> I have an entity named "Car" and another processor that creates another entity name "CarAudit".
> After the first round, the class "Car_" and class "CarAudit" are created, therefore causing a subsequent round of processing since "CarAudit" is marked with @Entity.
> However, the second round fails with the following error:
> "diagnostic error: Problem with Filer: Attempt to recreate a file for type com.example.Car_"
> This is due to not clearing the "metaEntities" list from the context object after every round. Each processing round will use the same processor and context object and try to create all of the meta entries listed in the context during each round.
> My proposed solution is to clear the metaEntities list from the context object after each round of processing.
> Sorry, I do not have a test case for this right now.

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

        


More information about the hibernate-issues mailing list