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 12:18 Go to next message
Miroslav Kandic is currently offline Miroslav Kandic
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 11:06 Go to previous message
James Sutherland is currently offline James Sutherland
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: Wed Apr 16 03:34:50 EDT 2014

Powered by FUDForum. Page generated in 0.11570 seconds