-->
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.  [ 12 posts ] 
Author Message
 Post subject: Hibernate tools api (javadoc)
PostPosted: Fri Apr 13, 2007 9:50 am 
Beginner
Beginner

Joined: Fri Apr 13, 2007 9:27 am
Posts: 33
Hello:
Can someone tell me where can I find the Hibernate-tools javadoc?

I am trying to implement a ReverseEngineeringStrategy, and I can't fined the api any where.

I am using version 3.2.

Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 13, 2007 11:58 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
easiest is to check out the source code.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 16, 2007 8:45 am 
Beginner
Beginner

Joined: Fri Apr 13, 2007 9:27 am
Posts: 33
max wrote:
easiest is to check out the source code.


Sorry, checking out the source code for every library I want to use is counterproductive. The api must exist somewhere. someone has to know where to find it.

Any one?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 16, 2007 9:41 am 
Expert
Expert

Joined: Tue Jul 11, 2006 10:21 am
Posts: 457
Location: Columbus, Ohio
hannah wrote:
Sorry, checking out the source code for every library I want to use is counterproductive.


Heh, obviously BETA open source software is not for you. ;)


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 16, 2007 9:42 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
I just told you where you could find it ;)

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 16, 2007 11:08 am 
Beginner
Beginner

Joined: Fri Apr 13, 2007 9:27 am
Posts: 33
Ananasi wrote:
hannah wrote:
Sorry, checking out the source code for every library I want to use is counterproductive.


Heh, obviously BETA open source software is not for you. ;)


If you know the answer please share it, otherwise keep the sarcasm to yourself.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 16, 2007 11:10 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
I'll try and make this as clear as possible:

There is no public binary download of the javadoc API for Hibernate Tools; there should be I agree but until then the place to get it is from the source.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 16, 2007 11:10 am 
Beginner
Beginner

Joined: Fri Apr 13, 2007 9:27 am
Posts: 33
max wrote:
I just told you where you could find it ;)


Max: I checked out the code from http://anonsvn.jboss.org/repos/hibernate/trunk/HibernateExt/tools/src/java/org/hibernate/cfg/reveng/

and the code is not documented . I guess there is no documentation at the time being.

By chance, do you know which method should be overwritten if I want to customize the property name for many-to-one fileds?

for example:
Table USER.ethnicity has a foreign key to table CODE. It is many-to-one relationshipe. The default strategy produce this code:

<many-to-one name="codeByEthnicity" class="Code" fetch="select">
<column name="Ethnicity" precision="7" scale="3" not-null="true" />
</many-to-one>

I am trying to make the name of the field equal to the name of the column in the USER table. In the above case 'ethnicity'.


Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 16, 2007 11:22 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
Use svn co http://anonhibernate.labs.jboss.com/bra ... bernateExt

(as described at http://www.hibernate.org/268.html)

and you will see that ReverseEngineeringStrategy has all methods documented.

In your case i guess you are looking for the foreignKeyTo* methods.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 16, 2007 11:45 am 
Beginner
Beginner

Joined: Fri Apr 13, 2007 9:27 am
Posts: 33
max wrote:
Use svn co http://anonhibernate.labs.jboss.com/bra ... bernateExt

(as described at http://www.hibernate.org/268.html)

and you will see that ReverseEngineeringStrategy has all methods documented.

In your case i guess you are looking for the foreignKeyTo* methods.


I got it , thank you very much.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 16, 2007 12:19 pm 
Expert
Expert

Joined: Tue Jul 11, 2006 10:21 am
Posts: 457
Location: Columbus, Ohio
hannah wrote:
If you know the answer please share it, otherwise keep the sarcasm to yourself.


Like I'd take etiquette lessons from you. e.g.

hannah wrote:
max wrote:
numeric with length 1 is a comon way of modelling boolean on dbs that does not have a boolean type

hannah wrote:
I think you need to read the question carefully..!


hannah wrote:
Sorry, checking out the source code for every library I want to use is counterproductive.


BTW (that means "By The Way" on the internets), the semi-colon, right parenthesis combination found at the tail end of my post means "I'm winking at you to indicate that I'm just joking." Now, of course, I am not.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 16, 2007 2:36 pm 
Beginner
Beginner

Joined: Fri Apr 13, 2007 9:27 am
Posts: 33
Ananasi wrote:
hannah wrote:
If you know the answer please share it, otherwise keep the sarcasm to yourself.


Like I'd take etiquette lessons from you. e.g.



No, sure you don't !


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