Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » Select from partition ?
Select from partition ? [message #756676] Mon, 14 November 2011 16:08 Go to next message
Krzysztof Kowalczyk is currently offline Krzysztof Kowalczyk
Messages: 113
Registered: July 2009
Senior Member
Hi,

I have an application running on Oracle and EclipseLink 2.1(if really needed I can upgrade it) using the old ExpressionBuilder api. I would like to optimise a long running query to use only one known partition.

Is it possible to construct a query that use both: a bit of native SQL (From x partition(y)) and ExpressionBuilder api for the rest of query?

Regards,
Krzysztof Kowalczyk

Re: Select from partition ? [message #758009 is a reply to message #756676] Mon, 21 November 2011 18:12 Go to previous message
James is currently offline James
Messages: 272
Registered: July 2009
Senior Member
It is probably better to use an SQL query then try to mix objects and SQL.

You can use the getTable() API to get a table reference, but I don't think you could generate what you want. EclipseLink's AsOfClause does do something similar in syntax.

--
James : http://wiki.eclipse.org/EclipseLink : http://en.wikibooks.org/wiki/Java_Persistence : http://java-persistence-performance.blogspot.com/
Previous Topic:Select from partition ?
Next Topic:Problem with @OneToMany from an @Embeddable
Goto Forum:
  


Current Time: Tue Sep 23 22:32:10 GMT 2014

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

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