-->
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.  [ 5 posts ] 
Author Message
 Post subject: [Hibernate/Ant] Configuration of Generate basic composite Id
PostPosted: Mon Oct 20, 2008 7:12 am 
Newbie

Joined: Mon Oct 20, 2008 3:40 am
Posts: 4
Hi everybody.

On my project i need to generate java classes from an existing data structure. I use Postgres 8.1.9.

The generation must be an automatic task. We generate the entire DB structure and java classes for each production steps.

For this, i use an Ant script to describe the hibernate tools configuration. But i am not able to configure the 'Generate basic composite Ids' check box of the Hibernate tool Eclipse plugin.
All manual generation use this check.And i i change it, all dev must be updated.......this task could be more expensive !

All others parameter are taken in account, except this one. I can't find on internet any links or doc about this parameter. Google gave me only 6 results.

Does any one can help me ?

Hibernate tools: 3.2.0.GA
Name and version of the database you are using: Postgres 8.1.9

Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 21, 2008 5:58 am 
Newbie

Joined: Mon Oct 20, 2008 3:40 am
Posts: 4
this is the code used in my and script

Code:

   <hibernatetool destdir="${src.java.dir}">
                   <jdbcconfiguration
                      configurationfile="${hibernate.generate.cfg.file}"
                      packagename="myproject.common.hibernate"
                      detectManytoMany="true"
                      preferBasicCompositeIds ="false"
                      detectOptimisticLock ="true">
                   </jdbcconfiguration>
                   <hbm2java jdk5="true" ejb3="false"/>
                </hibernatetool>


I guess the flag preferBasicCompositeIds is never take in account.

Why ?

Thx
L'ours


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 22, 2008 12:35 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
sorry, but i'm not fully understanding what your question is ?

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 23, 2008 5:38 am 
Newbie

Joined: Mon Oct 20, 2008 3:40 am
Posts: 4
I have many questions !

I try to make a reverse from a structure in Postgres.
I use two way : by eclipse and Hibernante Tool plusgin and by an Ant script.

Same database server, same Hibernate tool version (3.2.0.CR1)

Why the result of generation is different from Eclipse plugin and Ant script ?

Why is there no difference when i change the value of PeferBasicCompositeIds on ant script ?

Why have i Long type for primary key with Eclipse and long with ant ?


Do you need more elements ?
thx


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 23, 2008 8:53 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
maybe you are using different versions of hibernatetools.jar ?

Maybe you are using different setttings ?

_________________
Max
Don't forget to rate


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 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.