-->
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: Multiple databases/Schemas with Hibernate/Middlegen
PostPosted: Fri Nov 05, 2004 1:47 pm 
Newbie

Joined: Fri Nov 05, 2004 1:06 pm
Posts: 9
Hi,
After getting hibernate and Middlegen working today I was wondering if anyone could tell me whether they works accross multiple (sybase) databases, e.g. can I join accross two tables in two databases.

Also, is it possible to set relationships between tables via the Middlegen graphical tool, it didn't see any way to do it but would be surprised if that functionality is not available.

Thanks
David


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 05, 2004 6:20 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
Hibernate can join across schemas (it can do whatever a jdbc connection can do in this respect)

Middlegen i remember as having a limitation on schema handling, but david is better suited for that question ;)

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 05, 2004 11:38 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
Be surprised. Middlegen shows the current state of the database and the relationships. It does not allow you to edit the relationship or the database state at all (which is not hard to add). Obviously, is easy to drop out of Middlegen, add the constraint using your DB tool and then start Middlegen again. I can understand your desire to be able to so as the make this process easier. I think Max will add this feature request to the desired feature set for the extensions to JBossIDE he's working on.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 24, 2005 10:50 am 
Newbie

Joined: Tue Feb 08, 2005 4:29 am
Posts: 7
Hi
I read max said middlegen can do join accross schemas. I'm trying to generate mapping file for tables that are stored in different schemas. However i didn't succeed in it. What option(s) (for middlegen) shall i use in order to generate the mapping files of the different schemas WITHOUT losing the relations between the tables that are not in the same schemas.
Thx


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 24, 2005 10:57 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
Hi wblitz,

Please reread what I wrote...

I said *Hibernate* could join across schemas, and that Middelgen had troubles with it.

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