Re: mapping directionality in the ant file (for hibernate)

Dmitri Colebatch <[email protected]> Wed, 3 Aug 2005 20:06:30 +1000
Newsgroups gmane.comp.java.ejb.middlegen.user
Message-ID <[email protected]>
Thankyou - that sounds like what I want.  I didn't realise that it
spits out the properties file.  atm I'm using the gui and then
changing the directions using that, but its just not scalable.

cheers
dim

On 8/3/05, James Neville <[email protected]> wrote:
> Dmitri Colebatch wrote:
> 
> >My current issue is
> >that when I start middlegen (specifying no tables) it makes all the
> >relationships bidirectional.
> >
> 
> I'm no great expert here, but I set this up it in the properties file.
> 
> 1. Run the middlegen task, so it recognises the new schema.
> This will add the attributes for the table to the middlegen properties file.
> 
> 2. Edit the properties file and set the relations to false.
> ie.
> relations.employee-company.company-has-employee.enabled=false
> 
> 
> 3. Run the middlegen task again.
> 
> 
> The other option is to use the GUI task and design the mappings in
> there, prior to generation.
> There is probably some ant element i'm missing too, but i'm not running
> against such a big schema that it poses any problem.
> 
> 
> Regards,
> 
> James.
> 
> 
> -------------------------------------------------------
> SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
> from IBM. Find simple to follow Roadmaps, straightforward articles,
> informative Webcasts and more! Get everything you need to get up to
> speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
> _______________________________________________
> middlegen-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/middlegen-user
>


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click