File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -289,9 +289,29 @@ A possible example of such a `hibernate.cfg.xml` file is shown in the xml snippe
289289
290290### 2.1.3 The ` <fileset> ` element
291291
292+ The ` <fileset> ` element can be used to specify additional resources (most probably mapping files)
293+ that need to be included in the configuration.
294+
295+ ``` xml
296+ <target name =" reveng" >
297+ <hibernatetool destdir =" ..." >
298+ ...
299+ <configuration propertyfile =" ..." >
300+ <fileset file =" Foo.hbm.xml" />
301+ </configuration >
302+ ...
303+ </hibernatetool >
304+ </target >
305+ ```
306+ All the usual options for the [ Ant FileSet] ( https://ant.apache.org/manual/Types/fileset.html ) type apply.
292307
293308### 2.1.4 Additional Remarks
294309
310+ The ` propertyfile ` and ` configurationfile ` attributes and the ` <fileset> ` element can be freely mixed and
311+ matched. There are however two additional remarks to take into account:
312+ 1 . The properties defined in ` propertyfile ` take precedence over the properties defined in ` configurationfile ` .
313+ 2 . Files and resources specified in the ` configurationfile ` should be excluded from the files
314+ specified by the ` <fileset> ` to avoid duplicate import exceptions.
295315
296316### 2.2 JPA Configuration
297317
You can’t perform that action at this time.
0 commit comments