-->
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.  [ 3 posts ] 
Author Message
 Post subject: Multiple datasources
PostPosted: Fri Jan 16, 2004 4:53 am 
Newbie

Joined: Fri Jan 16, 2004 4:22 am
Posts: 3
1. Is is possible to use multiple datasources within a query call?

I need to create a BO that looks a bit like this:

public class MyBO extends HibernateBusinessObject
{
private Long myID;
private OtherBO other;

...
}

I need to map MyBO to one datasource and OtherBO to another datasource. And then write a finder that can handle a query like this:

Select from MyBO as my where my.other.field = 'something'

Is this possible using Hibernate?

And if so, where can I find information about how?

2. Alternatively, can you map a BO's fields to different datasources?

Like this:

public class MyBO extends HibernateBusinessObject
{
private Long myID;
private String field1;
private String field2;

...
}

Where field1 is mapped to one datasource and field2 to another.

/Bj


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 16, 2004 4:55 am 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
No, nothing of that is possible.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 20, 2004 4:15 am 
Newbie

Joined: Fri Jan 16, 2004 4:22 am
Posts: 3
gloeglm wrote:
No, nothing of that is possible.


Okey, thanks for your reply.

/Bj


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