-->
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.  [ 6 posts ] 
Author Message
 Post subject: Reverse engineering without relations
PostPosted: Thu Dec 08, 2005 6:26 am 
Newbie

Joined: Thu Dec 08, 2005 5:50 am
Posts: 1
Hi,

Hibernate version: 3.0
Eclipse: 3.1.1
Hibernate tools: 3.1.0.beta1

I'm reverse engineering a database form JDBC connection, generating only the .java files.

When I rev-eng the tables one by one, the tool generates the .java files without any relationships (this is exactly what I want), but when I rev-eng more than 1 tables it generates Sets if there are relationships between the tables.

Is it possible to generate these .java files without the relationships (only POJOs with the same fields as in the corresponding table) in one go?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 08, 2005 11:07 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
you dont want *any* releationships between your beans or is it only the collections assocations you want to remove ?

in any case you can just implement a reverseengineeringstrategy that only returns the foreign keys you actually want reverse engineered.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject: database db2 driver problem
PostPosted: Sun Dec 18, 2005 2:37 am 
Newbie

Joined: Sun Dec 18, 2005 2:26 am
Posts: 2
when i am doing reverse engineering by hibernate tool then it is giveing error driver is not suitable. right now we are using com.ibm.db2.jcc.DB2Driver but in hibernate tool some other driver how can i resolve this issue .please help me..?


Top
 Profile  
 
 Post subject:
PostPosted: Sun Dec 18, 2005 6:48 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
huh? why don't you just use the same driver ?

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject: db2 driver issue
PostPosted: Sun Dec 18, 2005 11:57 pm 
Newbie

Joined: Sun Dec 18, 2005 2:26 am
Posts: 2
hi ,
i used default one db2 driver in hibernate tool but it not taking,it gives again same error ,driver is not suitable.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 19, 2005 3:37 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
then enter the driver name/url that you know that works. The list in the tools is not exhaustive.

p.s. be a good sport and create a jira that specifies which driver name that we should suggest instead.

thanks.

_________________
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.  [ 6 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.