openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "KARR, DAVID (ATTCINW)" <dk0...@att.com>
Subject RE: What happens with invalid query hints?
Date Thu, 03 Dec 2009 01:08:19 GMT
> -----Original Message-----
> From: Kevin Sutter [mailto:kwsutter@gmail.com]
> Sent: Wednesday, December 02, 2009 3:56 PM
> To: users@openjpa.apache.org
> Subject: Re: What happens with invalid query hints?
> [deleted]
> 
> Otherwise, if you pass in a hint that OpenJPA knows nothing about
> (let's
> just say openjpa.hint.FailFast), then you would receive an
> ArgumentException.  The curious thing here is that this seems to
> contradict
> the hint processing as defined by JPA 2.0.  I believe invalid hints
are
> supposed to be ignored to allow for programming model compatibilities
> between JPA providers.  So, maybe there's some clean up necessary in
> our
> documentation.
> 
> Does this help?  We should probably open a JIRA to address this
> documentation hiccup.  If you don't have access to open a JIRA, then
> let me
> know and I can open one.

I may or may not have an account as of yet, but as I'm going to be
spending a lot of time with this in the next few months (at least), I
think it's worthwhile for me to create it.  I'll have it reference your
statements here.

> On Wed, Dec 2, 2009 at 2:36 PM, KARR, DAVID (ATTCINW)
> <dk068x@att.com>wrote:
> 
> > I'm just reading through the docs (1.2.1) right now, and I noticed
> the
> > following statement in section 10.1.7,  "Query Hints":
> >
> > "Invalid hints or hints which can not be processed by a particular
> > database are ignored. Otherwise, invalid hints will result in an
> > ArgumentException being thrown."
> >
> > I'm a little confused by this.  Under what circumstances will a hint
> be
> > ignored, and when will it get an ArgumentException?
> >

Mime
View raw message