title: How to generate POJO from PostgreSQl/PostGIS?
body: <p>I have a 25 .xsd schemas and want to generate DB tables and POJO classes from this schemas.<br>
  Hibernate can do it?  Im already try generate DB tables with XMLSpy and POJO with JiBX, but when i generate mapping with Hibernate names of tables in DB and in mappings was different. I want to use single tool to do this. </p>
  
  <p><strong>UPDATE</strong>  </p>
  
  <p>I try generate POJO with hibernate. I create <code>\hibernate.cfg.xml</code> ,<code>hibernate.reveng.xml</code> and console config. And when i try run configuration get error </p>
  
  <pre><code>org.hibernate.MappingException: Could not configure overrides from file: D:\liferay-develop\workspace\JABX_test\src\hibernate.reveng.xml
  Could not configure overrides from file: D:\liferay-develop\workspace\JABX_test\src\hibernate.reveng.xml
  org.hibernate.MappingException: invalid override definition
  invalid override definition
  org.hibernate.MappingException: invalid override definition
  invalid override definition
  org.xml.sax.SAXParseException: The content of element type "hibernate-reverse-engineering" must match "(schema-selection*,type-mapping?,table-filter*,table*)".
  The content of element type "hibernate-reverse-engineering" must match "(schema-selection*,type-mapping?,table-filter*,table*)".
  </code></pre>
  
  <p>When i use empty TableFilter in reverse enginering hibernate create POJO but only from deafult postgres tables.</p>
  
  <p>what i doing wrong?</p>
  
  <p><strong>UPDATE 2</strong>  </p>
  
  <p>How i use this tutorial  <a href="http://www.youtube.com/watch?v=tfZiKn5xhXk" rel="nofollow">http://www.youtube.com/watch?v=tfZiKn5xhXk</a> and get error </p>
  
  <pre><code> org.hibernate.exception.JDBCConnectionException: Getting database metadata
  Getting database metadata
  java.sql.SQLException: No suitable driver found for   jdbc:postgresql:localhost:5632:postgis_test
  No suitable driver found for jdbc:postgresql:localhost:5632:postgis_test
  java.sql.SQLException: No suitable driver found for jdbc:postgresql:localhost:5632:postgis_test
  No suitable driver found for jdbc:postgresql:localhost:5632:postgis_test
  </code></pre>
  
  <p><strong>UPDATE 3</strong></p>
  
  <p>Okey. Im reinstal eclipse and get situation like in first UPDATE again.  So i try generate POJO from DB and get only POJO from postgis tables: <code>geography_columns</code> and <code>spatial_ref_sys</code>. Hibernate cant work with PostGis?</p>