IntelliJ Java IDE
The moose likes Object Relational Mapping and the fly likes HQL for two different database Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Object Relational Mapping
Reply Bookmark "HQL for two different database" Watch "HQL for two different database" New topic
Author

HQL for two different database

Sandeep Bhoyar
Greenhorn

Joined: May 17, 2010
Posts: 14
Hi,

Can we write HQL for two different datasource or sessionfactory. if yes, please provide dummy HSQL

Vijitha Kumara
Bartender

Joined: Mar 24, 2008
Posts: 3563

HQL is Hibernate query language which is common, but if you need database specific query then try running a native SQL from Hibernate.


SCJP 5 | SCWCD 5
[How to ask questions] [Twitter]
 
 
subject: HQL for two different database
 
Threads others viewed
hibernate subqueries
Difference between Criteria API and HQL Queries?
Regarding session.load()
Q 4 C. Bauer & G. King (2): Hibernate & formulating queries
Hibernate subquery
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture