[hibernate-issues] [Hibernate-JIRA] Commented: (METAGEN-24) Create a mechanism to check whether xml files have changed

Hardy Ferentschik (JIRA) noreply at atlassian.com
Wed Feb 17 10:01:47 EST 2010


    [ http://opensource.atlassian.com/projects/hibernate/browse/METAGEN-24?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=35602#action_35602 ] 

Hardy Ferentschik commented on METAGEN-24:
------------------------------------------

The problem with this approach though is that due to the possibility of mixing xml and annotation configuration, there is the possibility that a change in an annotated class (eg a change in access type) will effect xml configured entities. 

> Create a mechanism to check whether xml files have changed
> ----------------------------------------------------------
>
>                 Key: METAGEN-24
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/METAGEN-24
>             Project: Hibernate StaticMetamodel Generator
>          Issue Type: Task
>            Reporter: Hardy Ferentschik
>            Assignee: Hardy Ferentschik
>             Fix For: 1.0.0-CR-1
>
>
> Since we cannot keep information between processor runs we will have to use some sort of file based mechanism. The processor could create a file when the xml files were parsed. The location of the the file could be passed as parameter or if not passed the VM tmp dir location is used. Each time the processor runs it checks whether any of the xml files is younger then the created tmp file. 
> We could en- and dis-able this feature via another flag. 

-- 
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