Re: Using query hints for mapping extensions in orm.xml

2007-04-05 Thread Russell Parry
AM To: open-jpa-dev@incubator.apache.org Subject: Re: Using query hints for mapping extensions in orm.xml Let's put this into a more concrete terms: Given: 1) Existing JPA orm schema in http://java.sun.com/xml/ns/persistence/orm_1_0.xsd 2) OpenJPA supports its version of the orm schema

Re: Using query hints for mapping extensions in orm.xml

2007-01-25 Thread Albert Lee
this message in error, please immediately return this by email and then delete it. -Original Message- From: Albert Lee [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 24, 2007 8:38 AM To: open-jpa-dev@incubator.apache.org Subject: Re: Using query hints for mapping extensions

RE: Using query hints for mapping extensions in orm.xml

2007-01-25 Thread Patrick Linskey
it. -Original Message- From: Albert Lee [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 24, 2007 8:38 AM To: open-jpa-dev@incubator.apache.org Subject: Re: Using query hints for mapping extensions in orm.xml First, I would not expected other providers will handle

Re: Using query hints for mapping extensions in orm.xml

2007-01-24 Thread Kevin Sutter
Thank you, Albert, for your experimentation. The updated schema definition (openjpa_orm_1_0.xsd) and the example openjpa_orm.xml seems to be what we are looking for. I guess the only concern is whether we can count on other JPA implementations to ignore this extra schema definition and just

RE: Using query hints for mapping extensions in orm.xml

2007-01-24 Thread Patrick Linskey
: Wednesday, January 24, 2007 8:38 AM To: open-jpa-dev@incubator.apache.org Subject: Re: Using query hints for mapping extensions in orm.xml First, I would not expected other providers will handle the special openjpa.orm.xsd even if it is spec'ed out in the document header. If they choose

Re: Using query hints for mapping extensions in orm.xml

2007-01-23 Thread Albert Lee
Somehow the one of the attachment (openjpa_orm_1_0.xsd) from my previous note did not make it to this forum. Try again here. -- ?xml version=1.0 encoding=UTF-8? !-- OpenJPA specific orm.xml schema

Re: Using query hints for mapping extensions in orm.xml

2007-01-22 Thread Albert Lee
I assume the test passed the openjpa:someelement someattribute=somevalue/ uses ?xml version=1.0 encoding=UTF-8? entity-mappings version= 1.0 xmlns=http://java.sun.com/xml/ns/persistence/orm; xmlns:openjpa= http://incubator.apache.org/openjpa/orm; Since this header

Re: Using query hints for mapping extensions in orm.xml

2007-01-21 Thread Marc Prud'hommeaux
Not that I am volunteering to be the resident namespace expert, but FTR, I tried throwing in a openjpa:someelement someattribute=somevalue/ element into an orm.xml, and I notice that we don't complain when we parse it, so presumably at least our parse mode doesn't have any problem with

Re: Using query hints for mapping extensions in orm.xml

2007-01-21 Thread Craig L Russell
If there is a way to include schema-validation=true when parsing the orm, I expect that this will throw an exception. Craig On Jan 21, 2007, at 11:59 AM, Marc Prud'hommeaux wrote: Not that I am volunteering to be the resident namespace expert, but FTR, I tried throwing in a

Re: Using query hints for mapping extensions in orm.xml

2007-01-18 Thread Kevin Sutter
Do we have any experts with these xml namespaces? Or, anybody that wants to become an expert? :-) It seems like we need a real example of using these to make sure they are viable. On paper, they look like the solution. But, Craig's concern about allowing new member elements within existing

Re: Using query hints for mapping extensions in orm.xml

2007-01-18 Thread Dain Sundstrom
IIRC this sort of extension would only be allowed if the original schema http://java.sun.com/xml/ns/persistence/orm; has explicitly allowed extension. Historically, Sun has made it impossible to extend their xml documents. -dain On Jan 18, 2007, at 6:16 AM, Kevin Sutter wrote: Do we

Re: Using query hints for mapping extensions in orm.xml

2007-01-16 Thread Kevin Sutter
Craig, I'm not an expert with namespaces, but it would be something along the lines of first defining the openjpa namespace and then specifying the attributes qualified by this namespace. We would also need to provide a schema for this openjpa namespace. Something like this, following on from

Re: Using query hints for mapping extensions in orm.xml

2007-01-16 Thread Craig L Russell
Hi Kevin, I'm not either an expert in namespaces, which is why I didn't follow in the first place ;-) On Jan 16, 2007, at 6:12 AM, Kevin Sutter wrote: Craig, I'm not an expert with namespaces, but it would be something along the lines of first defining the openjpa namespace and then

Re: Using query hints for mapping extensions in orm.xml

2007-01-16 Thread Marc Prud'hommeaux
That indeed does sound like a better solution. On Jan 16, 2007, at 6:12 AM, Kevin Sutter wrote: Craig, I'm not an expert with namespaces, but it would be something along the lines of first defining the openjpa namespace and then specifying the attributes qualified by this namespace. We

Re: Using query hints for mapping extensions in orm.xml

2007-01-15 Thread Rahul Thakur
I think this is the way to do it. Isn't this what the QueryHints are intended to do - to allow vendor specific query extensions to hook in :-) Cheers, Rahul Marc Prud'hommeaux wrote: OpenJPA people- A limitation of the JPA specification is that there is no built-in way to put

RE: Using query hints for mapping extensions in orm.xml

2007-01-15 Thread Patrick Linskey
Hi, It kinda feels like we're corrupting the intended use of query hints. Plus, it seems unfortunate to have to drop back into untyped strings if we can avoid it. I think that there is another approach that we've talked about earlier: use namespaces to intersperse OpenJPA data into the orm.xml