Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » EclipseLink Partition and native query
EclipseLink Partition and native query [message #986279] Mon, 19 November 2012 17:18 Go to next message
Miroslav Kandic is currently offline Miroslav KandicFriend
Messages: 7
Registered: October 2012
Junior Member
Does EclipseLink Partition support the native queries?
If I run JPA QL query I see the corresponding partition policy is called but if I run a native query EclipseLink runs it only against default pool not calling before that any partition policy.

Is there a way to run native query at least against all partitions?
Better solution would be if we can define a policy.
Re: EclipseLink Partition and native query [message #986494 is a reply to message #986279] Tue, 20 November 2012 16:06 Go to previous message
James Sutherland is currently offline James SutherlandFriend
Messages: 1939
Registered: July 2009
Location: Ottawa, Canada
Senior Member

You can define a partition policy on any query, or define a default policy on the session.

Query hint,
http://www.eclipse.org/eclipselink/api/2.4/org/eclipse/persistence/config/QueryHints.html#PARTITIONING

Persistence unit property,
http://www.eclipse.org/eclipselink/api/2.4/org/eclipse/persistence/config/PersistenceUnitProperties.html#PARTITIONING


James : Wiki : Book : Blog : Twitter
Previous Topic:Replication/union partitioning and elasticity
Next Topic:Write List<Object> to file using Eclipselink Moxy
Goto Forum:
  


Current Time: Thu Apr 25 05:31:40 GMT 2024

Powered by FUDForum. Page generated in 0.02884 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top