Apache JDO Project - Clarification : sequences and catalog/schema

This is Interesting: Free IT Magazines  
Home > Archive > Apache JDO Project > July 2006 > Clarification : sequences and catalog/schema





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Clarification : sequences and catalog/schema
Andy Jefferson

2006-07-26, 1:11 pm

Hi,

when someone wants to assign values using the strategy sequence they can
specify the "sequence" attribute defining the sequence name. How do they
define that the named sequence is in a particular catalog/schema?

For example I have a class
<class name="MyClass" catalog="mycat" schema="mysch1">
<datastore-identity strategy="sequence" sequence="SEQ1"/>
...
</class>

1. We could assume (as a default) that "SEQ1" is in the same catalog/schema as
the object requiring its values. Is this the intention? I didn't find a
specific wording to define this in the spec.

2. What if I wanted to use "SEQ1" in a schema "mysch2" for example ? Would I
be expected to specify a sequence name of "mysch2.SEQ1" ?


--
Andy
Java Persistent Objects - JPOX

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com