Time Lord
2004-10-27 20:10:56 UTC
Hi, I'm using hibernate 2.1.6 and middlegen.
Because I always get too much 'associated' data when getting data for a
table with several many-to-one relationships, I put the lazy="true"
statement in the '-to-one' tables. This is fine.
I want to add this by default to all tables - there are 105+ and our data
model is still changing, so how can I tell middlegen to do this
automatically when regenerating .hbm files? I.e, I don't want to have to add
this manually each time I regenerate them.
(I was told that lazy="true" will now be the default for hibernate 3.0, but
I won't use that until it goes 'gold'...)
TIA
Phil
_________________________________________________________________
Surf the net and talk on the phone with Xtra JetStream @
http://xtra.co.nz/jetstream
Because I always get too much 'associated' data when getting data for a
table with several many-to-one relationships, I put the lazy="true"
statement in the '-to-one' tables. This is fine.
I want to add this by default to all tables - there are 105+ and our data
model is still changing, so how can I tell middlegen to do this
automatically when regenerating .hbm files? I.e, I don't want to have to add
this manually each time I regenerate them.
(I was told that lazy="true" will now be the default for hibernate 3.0, but
I won't use that until it goes 'gold'...)
TIA
Phil
_________________________________________________________________
Surf the net and talk on the phone with Xtra JetStream @
http://xtra.co.nz/jetstream