hi,
How can unmarshall only one record at a time. (i.e) i don't want my sequence
objects in my xml file to be loaded into an enumeration or array or vector
immediately during parsing. I want to unmarshall only one object at a time
(something similar to startElement in SAX parser). I have around 10
On Thu, 27 Sep 2001, Matthew Jensen wrote:
> That sounds quite true.. and would explain the problems i was having with
> it. I'd be very interested in your patch, ill give it a run see if it
> fixes my problems also
hehe... haven't got any patch as yet, but the quickest easiest way to do
it
Hey Keith,
You suggest using a mapping file to stop the add from being called. I am
using a mapping file, but it still calls the add-method. What should I be
doing?,
Thanks for your responses.
Glenn.
-Original Message-
From: Keith Visco [mailto:[EMAIL PROTECTED]]
Sent: 26 September 20
> > Well in my code, the iterator i wrote kept a reference to the
> > underlying result set.
>
> the problem is not having a reference to the result set, but having a
> reference to the query object. the structure, afaics is that the OQLQuery
> object has a reference to its result set, but not v
On Thu, 27 Sep 2001, Matthew Jensen wrote:
> > where is the reference to it? After seeing the initial email I looked
> > through what I think is the right bit of code, and it seems to make
> > perfect sense that it was garbage collected. For my use I think I'll be
> > patching it (and post it i
> > > > The problem with this code is that after the call to getResults(), the
> > > > OQLQuery instance goes out of scope - hence it is marked for garbage
> > > > collection.
> > >
> > > this is strange. Are you sure this is the reason? Java objects are
> > > allocated on the heap so it doesn't
I had the problem of wanting case insensitive OQL, such as:
SELECT o com.project.User o WHERE lower(login) = $1;
but placing the lower() (or equivilent database call -- I'm using
postgresql for this) around the field resulted in the ParseTreeWalker
barfing, because it couldn't resolve the field
Mixed content is stored into only one variable and the order of appearance
is not saved. This is not a requirement for a data-binding framework, you just need to
know that
this kind data exists and stores it.
However as more and more people are using Castor as an XML Serializer, maybe next
vers
Hi Mette,
you're rightit is the old known naming collision problem.
This problem will be solved in the next version of Castor with the source generator
binding
file that will give you more control on the generated classes.
Arnaud
-> -Original Message-
-> From: Hedin, Mette [mailto:
The validation code is contained in the generated descriptors and is checked at
run-time
by the Marshalling framework.
Separating the validation code from the generated bean is an old-time discussion, you
might find
some threads about that in the archive of the mailing list.
Arnaud
-> -Ori
On Thu, 27 Sep 2001, Matthew Jensen wrote:
> > > The problem with this code is that after the call to getResults(), the
> > > OQLQuery instance goes out of scope - hence it is marked for garbage
> > > collection.
> >
> > this is strange. Are you sure this is the reason? Java objects are
> > allo
> > The problem with this code is that after the call to getResults(), the
> > OQLQuery instance goes out of scope - hence it is marked for garbage
> > collection.
>
> this is strange. Are you sure this is the reason? Java objects are
> allocated on the heap so it doesn't matter if it goes out of
> The problem with this code is that after the call to getResults(), the
> OQLQuery instance goes out of scope - hence it is marked for garbage
> collection.
this is strange. Are you sure this is the reason? Java objects are
allocated on the heap so it doesn't matter if it goes out of scope or no
I think I have discovered a bug, which occurs with a schema like this:
Currently the XMLClassDescriptorImpl class performs this check to see if
a field contains a value:
if(handler.getValue(object) != null) { /* code */ }
This simpl
How to get the JDO Documentation?
- Original Message -
From: "Matthew Baird" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, September 26, 2001 4:17 PM
Subject: Re: [castor-dev] Documentation out of date?
> I also have one more issue with the css, that is I can't print the
Hi,
I have a document that looks like:
.. .. .. ..
.. .. .. ..
.. .. .. ..
If I only want to know how many elements under first element , it
seems that castor needs to unmarshal the whole document and then from root
to get first A object and then get the cou
I also have one more issue with the css, that is I can't print the page, nor
can I cut and paste it into word and print it. When printed, it cuts off
after the first page. Dunno if anyone else has this problem.
-Original Message-
From: Keith Visco [mailto:[EMAIL PROTECTED]]
Sent: Wednesda
I noticed on page 57 in the most current version of the documentation that
you discuss getting the data out of a mixed content model, but the example
you discuss is a data content model, with data only. For that case you have
methods for the content. However, when you have a mixed content model yo
I noticed that you do not seem to map simple types to a class, but rather
just map the base type of the simple type, and use that in the generated
code. For example, in the most recent version of the documentation on page
48 and on, you map the simpleType PriceType to a java.math.BigDecimal.
Furth
Hi,
Currently in the XMLFieldDescriptorImpl class the default field handler is
changed to the DateFieldHandler
class for date type fields.
public XMLFieldDescriptorImpl( FieldDescriptor fieldDesc, String
xmlName, NodeType nodeType )
{
:
:
//-- check for instances
I agree...we'll have to lobby and beg to the "powers-that-be" at
Intalio/Exolab in order for that to be changed. It's actually worse than
trying to get the U.S. Congress to agree on something. The unwritten
Exolab policy is that all the Exolab websites use the same stylesheets.
So changing it for
In the latest version of the user guide, in section 2.3.2.14, I see that a
complexType InvoiceType is mapped to a class InvoiceType and a group Person
is mapped to a class Person. However, I believe it is quite legal to declare
also a global complexType Person this would seem to result in a name
c
Putting "exclusive" mode in the mapping file will not make sense, as it
exclusive is more exepnsive so why do that. I think default mode as "shared"
will
work for most cases. Of course I can declare all the classes in mapping file
as "Exclusive", and at runtime while executing be selective. Is tha
Hi,
I am trying to use nested transactions in my code. Calling the
Database.begin() more then once would give me an error.
I'd like to know if someone knows a way around it - e.g. by opening
multiple connections perhaps, or other.
Thanks,
Norbert
--
When the mapping of Employee declared as access="exclusive",
all its related or dependent object will not be affected. They're load in
the default "shared" or its own specified mode.
Only when you load it and specify Exclusive in run time, the related
objects are loaded all with exclusive.
Tho
i second this. Also willing to put in time to come up with a new solution.
-Original Message-
From: Sudhir Bhojwani [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 26, 2001 11:52 AM
To: [EMAIL PROTECTED]
Subject: [castor-dev] JDO: Excelusive locks problem
Hi,
Acquiring an "Exclus
Hi,
Acquiring an "Exclusive" lock on an object, locks all the related objects. I
understand
this is done for maintaining the foreign key constraints. However, this for
most practical
purposes is a problem. E.g. Employee is related to Department. Usually
Department will have
100's of Employees, s
Get the source and build the doc yourself and you will see a more updated
changelog.
Thomas
-Original Message-
>From: Dmitri Colebatch [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, September 25, 2001 11:53 PM
>To: [EMAIL PROTECTED]
>Subject: Re: [castor-dev] Problems using many to many re
Having re-read it, with the benefit of coffee, the below isn't legal.
> what wasn't so clear from the schema spec was whether
>
> CCYY-MM-DDThh:mm:ssZ+/-hh:mm
> CCYY-MM-DDThh:mm:ss.SSSZ+/-hh:mm
> are legal
Owen--
Owen Green
Software Developer, Unique Interactive
50 Lisson St, London, NW1 5D
The problem is that Castor SQLEngine attempts to set NULL VARCHAR fields as CHAR sql
datatype. Not all JDBC drivers correctly perform
java.sql.PreparedStatement::setNull(int paramIndex, int sqlType), where sqlType is
java.sql.Types.CHAR and actual field type is VARCHAR or LONG VARCHAR. I'm try
just a question to the castor team:
Is it necessary to keep those cvs tags inside the sourcecode ?? In our
cvs, we keep two branches, one for internal additions/changes and one
for the original cvs snapshots from exolab.org
Whenever doing a merge, we get conflicts *in every file* containing such
hi,
using the castor xml mapping, i would like to ask what would be the best way
to handle references between objects, especially objects that are referenced
by
more than one object.
e.g.
class Student {
String name;
List lectures;
}
class Professor {
String name;
List lectures;
}
cla
ouch! geez, thats a bit worrying... any chance we could introduce a
reference there? or make the class not static? makes it hard to put a
framework on top...
cheesr
dim
On Wed, 26 Sep 2001, Tim Fox wrote:
> I'd thought I'd share a very nasty problem that occurs when OQLQuery and
> QueryRes
When you change it, could you have a look at the CSS style sheet used in the
docs?
I have a Dell Inspiron notebook with a 130 dpi display, compared to the
usual 96 dpi.
Unfortunately the fonts on the Castor website are fixed. My eyes hurt!
Could you just change the XY { font: 8pt Tahoma...} to a
Title: RE: [castor-dev] xs:datetime in DateFieldHandler
Hi Owen,
This work has already been started, I am currently looking to complete it over the next few weeks. Attached is what has been done so far.
Thanks.
-Original Message-
From: Owen [mailto:[EMAIL PROTECTED]]
Sent: 26 Sept
I'd thought I'd share a very nasty problem that occurs when OQLQuery and
QueryResults is used in a certain way - this has just cost me a fair amount
of time - and the correct usage (IMHO) is not clear from the documentation.
I have a method that returns a QueryResults instance (this is all fictit
Hi,
I know that this is on the Todo list, but as I need the ability to deal with UTC
offsets
now, I thought I may try and do it myself.
First I'd like to make sure I've got the right end of the stick as far as legal
representations of datetime go. As I understand it the following are legal
37 matches
Mail list logo