-->
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: 1 SQL with tables from 2 Schema
PostPosted: Mon Dec 09, 2013 6:45 am 
Newbie

Joined: Mon Dec 09, 2013 6:41 am
Posts: 1
Hi guys,

I got a physical database with 2 schemas. I need to do a query that access table from 2 schema which looks something like this:

SELECT * FROM schema1.table1 t1, schema2.table2 t2
WHERE t1.field1 = t2.field2


Can this be achieve since i can do something like this in mySQL query editor.

Thanks.


Top
 Profile  
 
 Post subject: Re: 1 SQL with tables from 2 Schema
PostPosted: Mon Dec 09, 2013 7:17 am 
Senior
Senior

Joined: Tue Oct 28, 2008 10:39 am
Posts: 196
Put the schema-mapping into your Annotations/XML-Mapping and you are done.


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.