-->
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: Search in all tables of db
PostPosted: Fri Nov 06, 2015 7:27 am 
Newbie

Joined: Fri Oct 02, 2015 6:11 am
Posts: 6
Hi :) i have two questions.

I have a site and i want create a research.
When anybody write anything i want that hibernate search in ALL TABLE ( Example Table "PEOPLE"). Is it possibile?
In this case? how?

Second question: Is it possibile search in ALL Database? thanks.


Top
 Profile  
 
 Post subject: Re: Search in all tables of db
PostPosted: Fri Jan 08, 2016 1:25 am 
Hibernate Team
Hibernate Team

Joined: Thu Sep 11, 2014 2:50 am
Posts: 1628
Location: Romania
1. In HQL, a
Code:
select from Object
will select all entities, which is what you might want, although it will not be very efficient in terms of performance.

2. You need a separate SessionFactory/EntityManagerFactory for each separate DB, so there's no unified API for that.


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.