<table cellspacing='0' cellpadding='0' border='0' background='none' style='font-family:arial;font-size:10pt;color:rgb(51, 51, 51);background-color:rgb(255, 255, 255);width:100%;'><tr><td valign='top' style='font: inherit;'>Max, <br><br>Thanks for your reply. Comments inline.<br><br>&gt; Secondly, even though I have defined the<br>&gt;HibernateReverseEngineeringStrategy, why tools is generating pojos and mapping<br>&gt;files for all the tables in the db ? (Note:I have listed only selected tables<br>&gt;in the hibernate.reveng.xml).<br><br>&gt;Not sure - depends what your customer reverse engineeringst rategy does.<br><br>I am using the default reverse engineering strategy. Here is the code:<br><br>&nbsp;cfg = new JDBCMetaDataConfiguration();<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; OverrideRepository or = new
 OverrideRepository();<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Configuration c = cfg.configure(confFile); // hibernate.cfg.xml<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; or.addFile(revengFile); // hibernate.reveng.xml<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DefaultReverseEngineeringStrategy strategy = new&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DefaultReverseEngineeringStrategy();<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 settings = new ReverseEngineeringSettings(strategy);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; settings.setDefaultPackageName(helper.getPackageName()); // sets package name<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; strategy.setSettings(settings);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cfg.setReverseEngineeringStrategy(strategy);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cfg.readFromJDBC();<br><br><br>And the hibernate.reveng.xml is <br><br>&lt;?xml version="1.0" encoding="UTF-8"?&gt;<br>&lt;!DOCTYPE hibernate-reverse-engineering PUBLIC "-//Hibernate/Hibernate Reverse Engineering DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-reverse-engineering-3.0.dtd"&gt;<br>&lt;hibernate-reverse-engineering&gt;<br>&nbsp; &lt;table-filter
 exclude="false" match-catalog=".*" match-name="HOTEL" match-schema="TRAVEL"/&gt;<br>&nbsp; &lt;table-filter exclude="false" match-catalog=".*" match-name="PERSON" match-schema="TRAVEL"/&gt;<br>&nbsp; &lt;table-filter exclude="false" match-catalog=".*" match-name="TRIP" match-schema="TRAVEL"/&gt;<br>&nbsp; &lt;table-filter exclude="false" match-catalog=".*" match-name="TRIPTYPE" match-schema="TRAVEL"/&gt;<br>&lt;/hibernate-reverse-engineering&gt;<br><br><br>Only 4 tables are selected as part of the hibernate.reveng.xml. But pojos and mappings are generated for all the tables in the TRAVEL db. Also the selected 4 tables are not dependent on the other tables in the schema.<br><br>Is it possible pojo generator/mapping generator is reading all the tables in the schema and ignoring the "selected" tables defined in reveng.xml. And hence creating the additional java and mapping files. <br><br>I would appreciate if you can tell me what I am
 missing.<br><br>Thanks - G<br><br><br><br></td></tr></table><br>