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 
 Re: Filter on which tables to map 
 PG   11 May 2005, 07:21 

Comment
Prev. thread 
 Next thread
 
Prev. posting 
 Next posting
From: decairn (10 Jun 2004, 20:16) Replies: 1, Views: 40375
Subject: Re: Filter on which tables to map
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.
Prev. thread 
 Next thread
 
Prev. posting 
 Next posting
© Copyright 2006, Red Hat Middleware, LLC. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc. [Privacy Policy]