HIBERNATE JBoss.org
 |  Register  | 
     
News 
About 
   Feature List 
   Road Map 
Documentation 
   Related Projects 
   External Documentation 
Download 
Forum & Mailinglists 
Support & Training 
JIRA Issue Tracking
Wiki Community Area


Hibernate Public Training Courses


Get Hibernate in Action eBook!


JavaWorld 2003 Finalist


Jolt Award 2004 Winner
      
Documentation > Community Area > Middlegen for Hibernate > Comments > Re: Filter on which tables to map


Comment
Prev. thread 
 Next thread
 
Prev. posting 
 Next posting
Subject: Re: Filter on which tables to map 10 Jun 2004, 20:16
From: decairn Replies: 0, Views: 211
 
On 08 Jun 2004 19:09, alu wrote:

>Does anyone know to make middlegen to read in subset of tables in a
>schema? I only want to map new tables.

>Middlegen tried to read in all tables in my schema. It takes forever
>to finish. As of writing this, it is still running!

It's possible to specify table names, but it's also ugly.  See the 
Middlegen site documentation on the ant target options.

We run it on a database with 500+ tables, takes 5 minutes to complete 
using the full catalogue and passing it through hbm2java.  With a 
properly defined ant target structure this is only done once and the 
output is sent to a jar in a dependency list.  Subsequent compiles 
ignore it and go straight to compiling application code.
 

Thread:
 Filter on which tables to map 
 alu   08 Jun 2004, 19:09 
 Re: Filter on which tables to map 
 decairn   10 Jun 2004, 20:16 
      

coWiki