Keith Chew SL wrote:
> Hi Rikard
>
> Are you using Castor XML directly on the EJB or on the ValueObject/View that
> the EJB generates?
I'm not using ValueObjects at all (have a much more interesting approach
to that problem), but am instead using direct refs. The problem is
mainly how to res
Hi,
I was able to use the identity and refernce to marshall/unmarshall
ID and IDREF. Now I need to the same thing for IDREFS. Does Castor-XML
support IDREFS? How do I specify IDREFS?
Thanks.
Subrmanian
---
If you wish to unsubscribe from
"Cabrera, Alan" wrote:
>
> I want to be able to supply my own instances, from a pool that I manage,
> instead of creating them on-the-fly in ClassMolder's newInstance() method.
> Is there a way to do this?
>
> Regards,
Alan,
There is no API supplied funcitonality for this type of behavior but
Hi Eswar,
I am currently in the process of making changes to
ValidationException to include information such as the
field name, the field value and the restriction on the
value.
Please see the e-mail thread posted to castor-dev
entitled "XML Schema Validation: returning the field
name in the exc
I'm trying to convert from Java object to XML and vice versa and I having two
problems.
1)When I marshal the Java object to XML, the mimeId and mimeDescription get set with
the correct value but the mimeType is never set.
2)And when I tried to unmarshal, I get an error message with the mim
Hello i am new on this mailing list.
I try to use CASTOR 0.9.3 with Postresql 7.1.3 on a Linux 2.2 powered
computer and i get always the same exception.
My test is derivated from the standard example. I just try to load a
"computer" object.
[test] Begin transaction
[test] org.exolab.castor.jdo.P
Hi Rikard
Are you using Castor XML directly on the EJB or on the ValueObject/View that
the EJB generates?
I am using Xdoclet with CMP2.0 which generates the Views/ValueObjects. Now,
I would now like to add XML input and output capabilities. eg:
Input - Single
==
- receive order.xml
-
I want to be able to supply my own instances, from a pool that I manage,
instead of creating them on-the-fly in ClassMolder's newInstance() method.
Is there a way to do this?
Regards,
Alan
---
If you wish to unsubscribe from this mailing,
Hi Bruce
If you stick to PM, then you can make it portable across containers. It's
one step better than using a container's CMP2.0. In that situation, you are
more locked in to the vendor. Not only do you need to write new descriptors,
the results may differ if you decide to port.
Just going thr
Hi Don
Ah, now I understand your requirements. No, I believe Castor does not
support this (yet).
Keith
> -Original Message-
> From: Don DeLuca [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, 12 January 2002 8:06 a.m.
> To: [EMAIL PROTECTED]
> Subject: Re: [castor-dev] Inheritance - Map tw
chris williams wrote:
>
> Is it possible to use castor to map our Java classes
> to stored procedures? If castor does not support
> this, what would be a rough estimate of the level of
> effort to change castor to use stored procs for all
> database interaction? We already have a castor
> imple
"Rano, Didier" wrote:
>
> Hello,
>
> My castor configuration generates this request :
>
> SELECT MTI_REF.MTI_REF_C, MTI_REF.MTI_TYP_C,
>VALRSR_CAR_MTI_REF.CAR_ID
> FROM MTI_REF, VALRSR_CAR_MTI_REF
> WHERE MTI_REF.MTI_REF_C = VALRSR_CAR_MTI_REF.MTI_REF_C(+)
>AND MTI_REF.MTI_REF_C
Ryan Marsh wrote:
>
> Has this problem been fixed?
>
> See:
> http://www.mail-archive.com/castor-dev%40exolab.org/msg03410.html
>
Ryan,
Are you using the extends keyword in your mapping descriptor?
Bruce
---
If you wish to unsubscri
All,
This message from November claims to add a certain level of support for
the topic being discussed. I have not tested this code at all. I'm only
suggesting that maybe it would help your situation:
http://www.mail-archive.com/castor-dev@exolab.org/msg02599.html
BTW, nice suggestion there K
Keith Chew wrote:
>
> Yes, and it comes with source. If you need help in setting anything up, give
> me a buzz. Else, join the newsgroup for further discussion.
>
> Even if you are not going to use PM, just read the PDF documentation. By the
> end of it, you'll be familiar with CMP2.0 and addito
Hi Rickard,
When using IDResolver you need to have a mapping as such:
That should do the trick...
I don't think CDR (ClassDescriptorResolver) will help you at all, it's
used for loading ClassDescriptors, not for resolving references to
exising classes.
--Keith
Rick
Ide Roth wrote:
>
> I have a Java class and I'm trying to convert to XML (marshal) and back to Java
>object (unmarshal). The problem I having is the Java object have a getter which
>return one object and a corresponding setter which take a different object. I'm
>allow to make any change t
I don't think we have timeframe for 0.9.4 yet.
But, unless 0.9.4 release very late, I would guess there would
have no major feature from now to 0.9.4 on the JDO side.
Sorry, we're lacking of resource.
Thomas
-Original Message-
>From: Werner Guttmann [mailto:[EMAIL PROTECTED]]
>Sent:
I think I understand what you are doing. Since GenericValueObject its not
stated in the mapping file, both subclasses must repeat the inherited fields
and don't take advantage of the "extends" feature of Castor JDO.
In my case, I have a concrete super-class and subclasses that extend it. The
sup
Hi,
I'm really, really keen (and I am sure others are too) to have a list of
key features that will appear in the next release of Castor JDO, and a
finger-in-the-air estimate of when the next release will be available.
Can anyone provide this information? Even a rough idea would be much
appreciat
All
We are using castor to unmarshall web.xml for some modeling we are
doing. However, nothing we can do will prevent xerces from going out and
attempting to download the DTD for web.xml. Setting validation false in
Unmarshall does nothing.
M
Hi,
I have typical validation problem. where i would like to know the xml
element (Java bean) that was invalid.
for example if i have an element X which starts the validation process, but
the elemnt that violates the validation is Y well indepth from X (nth child
of X).
I find that castor raises
The company we work with is moving toward a new policy
away from dynamic sql and toward only allowing stored
procedure selects/inserts/updates/deletes. They are
doing this for multiple reasons but for the most part,
they want to ensure that they are able to have direct
access to examine the proc
Hello,
My castor configuration generates this request :
SELECT MTI_REF.MTI_REF_C, MTI_REF.MTI_TYP_C,
VALRSR_CAR_MTI_REF.CAR_ID
FROM MTI_REF, VALRSR_CAR_MTI_REF
WHERE MTI_REF.MTI_REF_C = VALRSR_CAR_MTI_REF.MTI_REF_C(+)
AND MTI_REF.MTI_REF_C = ?
And I want request first MTI_REF
Hi!
I'm using Castor XML with EJB's. My EJB's reference other EJB's, both as
direct references and as collections.
I would prefer if these references and collections were handled by
allowing me to dereference them using custom code. E.g. use IDREF's
which would allow me to look up the EJB's w
I have a Java class and I'm trying to convert to XML (marshal) and back to Java object
(unmarshal). The problem I having is the Java object have a getter which return one
object and a corresponding setter which take a different object. I'm allow to make
any change to these functions.
Exampl
Hi Antoine and Nick,
To do that you just have to download the Xerces2 distribution from the
Apache web site (xml.apache.org) or use their CVS server. Once you have
the Xerces2 jar, you just have to put it in the classpath.
In castor, the properties file lets you choose your SAX Parser
implementa
From: "Alexey A. Efimov" <[EMAIL PROTECTED]>
> When you load mappin.xml and get object Mapping.
> Then:
> MappingRoot mappingRoot = mapping.getRoot();
> Enumeration e = mappingRoot.enumerateClassMapping();
> while (e.hasMoreElements()) {
> ClassMapping classMapping = (ClassMapping)e.nextElemen
When you load mappin.xml and get object Mapping.
Then:
MappingRoot mappingRoot = mapping.getRoot();
Enumeration e = mappingRoot.enumerateClassMapping();
while (e.hasMoreElements()) {
ClassMapping classMapping = (ClassMapping)e.nextElement();
// Here using ClassMapping you can retrive all info
Hi,
Ok, this work, but parameter database-name is ignored. Try this:
Its work too :). Castor just make new PoolManDataSource(). And
database-name param is ignored.
Thanks.
-Original Message-
From: Bruce Snyder [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 10, 2002 1:28 AM
Hi Arnaud,
how can I do this change. Url of download ? Config files ? Code Changes ?
There is also something funny, I did not receive your message directly.
Antoine
-Original Message-
From: Arnaud Blandin [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 11, 2002 10:48 AM
To: [EMAIL PR
Hi Arnaud,
how complicated is it to do that (does Castor use JAXP ?)
Bye
Nick
-Original Message-
From: Arnaud Blandin [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 11, 2002 10:48 AM
To: [EMAIL PROTECTED]
Subject: Re: [castor-dev] Castor performance
Hi Antoine,
The best way to im
Hi Antoine,
The best way to improve performance in Castor is to change your
parser...a lot of resources in Castor is being consumed by Xerces1.
I suggest you to move to Xerces2 that is way faster than Xerces1.
Also always use the SourceGenerator with the marshalling framework for
better result.
Hello,
This is my database.xml :
But I have this exception:
DatabaseNotFoundException( except )
org.exolab.castor.mapping.MappingException: Nested error:
java.net.UnknownHostException: castor.exolab.org
Someone knows the problem ? Thank you.
Didier Rano
Serv'N Data
-
Hi there,
testing castor-xml we found out a strange code generation behaviour
Using a schema with the following included
only one Element for the choice is generated instedead of a list of
choices. Removing the sequence-decls everything is ok.
--
Yours
org.xml.sax.DocumentHandler is deprecated. How change to avoid using of this
class and all classes deprecatd ?
Didier Rano
Serv'N Data
---
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
Hi all,
I would like to know how to improve the performance of castor for the
marshalling and unmarshalling part. We are using classes generated by castor
on the java side.
Bye,
Antoine
---
If you wish to unsubscribe from this mailing, send
Dear all,
I have a simple question.
Is it possible,with castor, to have mapping between db to
schema and schema to java ? and the vice versa situation?
Thanx
Murli
38 matches
Mail list logo