File tree Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -262,10 +262,37 @@ hibernate.default_schema=PUBLIC
262262
263263### 2.1.2 The ` configurationfile `  attribute  
264264
265+ The second possibility is to use the well known ` hibernate.cfg.xml `  file and specify it using the 
266+ ` configurationfile `  attribute. 
267+ 
268+ ``` xml 
269+ <target  name =" reveng"  >
270+     <hibernatetool  destdir =" ..."  >
271+         ...
272+         <configuration  configurationfile =" hibernate.cfg.xml"   />
273+         ...
274+     </hibernatetool >
275+ </target >
276+ ``` 
277+ 
278+ A possible example of such a ` hibernate.cfg.xml `  file is shown in the xml snippet below.
279+ 
280+ ``` xml 
281+ <hibernate-configuration >
282+     <session-factory >
283+         <property  name =" hibernate.connection.driver_class"  >org.h2.Driver</property >
284+         <property  name =" hibernate.connection.url"  >jdbc:h2:mem:</property >
285+         <mapping  resource =" Foo.hbm.xml"  />
286+     </session-factory >
287+ </hibernate-configuration >
288+ ``` 
265289
266290### 2.1.3 The ` <fileset> `  element  
267291
268292
293+ ### 2.1.4 Additional Remarks  
294+ 
295+ 
269296### 2.2 JPA Configuration  
270297
271298### 2.3 JDBC Configuration  
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments