-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Hibernate Tools GUI/ant task config mismatch
PostPosted: Wed Aug 11, 2010 10:58 am 
Newbie

Joined: Wed Aug 11, 2010 10:43 am
Posts: 2
Hello, I'm having a bit of trouble with the hibernatetool ant task and was wondering if any of you could quickly clarify something.

In the eclipse hibernate tools reverse engineering GUI, there is the option to toggle a "Generate basic typed composite ids" option - which is exactly what I want.

I'm tyring to automate the reverse engineering process, using the hibernatetools ant task, but I can't find any way to set "Generate basic typed composite ids" within the hibernatetools/jdbconfiguration ant task. I can see the other GUI toggles are there - detectOptimisticLock and detectManyTomany - but I can't see hide nor hair of any way to set "Generate basic typed composite ids" except via the GUI - which is no use for automation.

Do i just have to suck it up and continue with manual generation for now, or am i missing something obvious?

Thanks.


Top
 Profile  
 
 Post subject: Re: Hibernate Tools GUI/ant task config mismatch
PostPosted: Thu Aug 12, 2010 5:14 am 
Newbie

Joined: Wed Aug 11, 2010 10:43 am
Posts: 2
Answering my own question to some extent, in case anybody ever comes after from google:

A bit of source diving shows me that there is an undocumented property for <jdbcconfiguration> in ant: preferBasicCompositeIds .

However there is a comment against it, "not exposed here", and perhaps unsurprisingly in the light of that, it doesn't seem to make any difference when you set it, which is unfortunate.

So it appears this functionality is exposed to the GUI reveng tool, but not to the ant tasks. So I might as well wave the white flag on this and continue manually generating.

Source I looked at: http://anonsvn.jboss.org/repos/hibernat ... nTask.java


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.