I have found the correct combinations to solve this problem. Let me brief what I have done,and the way is simple. 1.download latest middlegen from CVS (:pserver:anonymous@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx:/cvsroot/middlegen) 2.build the source with ant,then I have middlegen2.2-dev bundles jar files. (http://boss.bekk.no/boss/middlegen/install.html) 3.download latest postgreSQL driver (I use postgresql-8.3-604.jdbc3.jar) 4.modify relative parameters in middlegen ant build.xml then all the generation works as what I want. -- View this message in context: http://www.nabble.com/Does-anyone-use-postgreSQL%28windows-version%29%2BHibernate-with-middlegen--tp23089668p23093725.html Sent from the PostgreSQL - general mailing list archive at Nabble.com. -- Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general