Hi,
you can list tables in build.xml e.g.,
<table name="ADDRESS" />
<table name="ADDRESS_TYPE" />
For many2many relationships you'll have to specify them
<many2many>
<tablea generate="true" name="ADDRESS" />
<jointable name="ADDRESS_X_COMPANY" generate="false" />
<tableb generate="true" name="COMPANY" />
</many2many>
And you should be able to tell ant to use more memory for Middlegen in either your ant conf file or something like
export ANT_OPTS=-Xmx512M
ant build.xml
I've never done this for Middlegen but it does work for other similar processes.
Cheers,
Geoff
"[EMAIL PROTECTED]" <gdilem
Sent by: [EMAIL PROTECTED]
09/05/2007 11:03 AM ZE2
Please respond to middlegen-user
To: "middlegen-user" <[email protected]>
cc:
bcc:
Subject: [Middlegen-user] out of memory problems
Hi all
I have a huge data base and i want to use middlegen for creating session bean and hibernate pojos for each tables.
I got out of memory problems during parsig tables.I'd like to knowif exists a way for telling middlegen to consider few tables each time or if exists a way for specify in build.xml a bigger java virtual machine.
Regards
------------------------------------------------------
Passa a Infostrada. ADSL e Telefono senza limiti e senza canone Telecom
http://click.libero.it/infostrada
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
middlegen-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/middlegen-user
------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/
_______________________________________________ middlegen-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/middlegen-user
