Skip to main content



      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
Eclipse UserFriend
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
Eclipse UserFriend
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
Previous Topic:Replication/union partitioning and elasticity
Next Topic:Write List<Object> to file using Eclipselink Moxy
Goto Forum:
  


Current Time: Fri Jul 25 12:18:43 EDT 2025

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

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

Back to the top