[castor-dev] Marshalling questions

2001-10-03 Thread Victor Hadianto
Hi list, When marshalling a class to an xml document (using mapping), is it possible to add the tag to identify the dtd used? Or even better can castor generate a DTD based on a mapping schema? /victor --- If you wish to unsubscribe f

Re: [castor-dev] oracle date whackiness

2001-10-03 Thread Ilia Iourovitski
Another solution is to try to use java.sql.TIMESTAMP. If you specify sql type of the field as timestamp castor "may" convert it. Ilia -Original Message- From: Ryan Campbell [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 03, 2001 3:19 PM To: [EMAIL PROTECTED] Subject: Re: [castor-dev

Re: [castor-dev] oracle date whackiness

2001-10-03 Thread Ryan Campbell
Well, your *default* date format is hard-coded at the oracle level whether you like it or not. I'm just saying that you can change that default. Ryan -Original Message- From: Dmitri Colebatch [mailto:[EMAIL PROTECTED]] Are we suggesting here that the date format can be hard coded at th

Re: [castor-dev] oracle date whackiness

2001-10-03 Thread Dmitri Colebatch
Are we suggesting here that the date format can be hard coded at the oracle level and that'll be ok? I would've thought that if you do date > $1 and set the param as a date type it would be ok, but I'm pretty green so this may not be the case with castor... its the way it would work with a prepar

Re: [castor-dev] oracle date whackiness

2001-10-03 Thread Ryan Campbell
Replace the "SID" with the SID from your oracle instance. No matter how you created your database, you had to provide an SID at some point. The init*.ora file is used by oracle to configure your database instance. You could also just set the nls_date_format as an environment variable for the us

Re: [castor-dev] oracle date whackiness

2001-10-03 Thread Matthew Baird
you can do that? I don't have a /dbs/initSID.ora file I'm running on 8i on win2k. Any guess where I'd find this file? -Original Message- From: Ryan Campbell [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 03, 2001 1:35 PM To: [EMAIL PROTECTED] Subject: Re: [castor-dev] oracle date wh

Re: [castor-dev] oracle date whackiness

2001-10-03 Thread Ryan Campbell
How about a solution that doesn't involve castor? If you don't have any other apps running on that oracle instance, you could just set the nls_date_format (in your $ORACLE_HOME/dbs/initSID.ora file) to your required format. Of course if other applications rely on the date being in the old oracle

Re: [castor-dev] Dates in OQL

2001-10-03 Thread Matthew Baird
oracle, in their infinite wisdom, has a date format unlike any other rdbms vendor. try DD-MMM-YY where MMM is like JUN MAY SEP ooo oracle I love you. m -Original Message- From: Ryan Campbell [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 03, 2001 11:40 AM To: [EMAIL PROTECTED] Su

[castor-dev] Dates in OQL

2001-10-03 Thread Ryan Campbell
Questions about dates in OQL: 1. Can I use the Oracle sysdate psuedocolumn? 2. Can I use oracle's built in date manipulation functions? 3. If all of the above are unworkable, what format does the date need to be in to do comparisons? oql = db.getOQLQuery ("SELECT r FROM atracker.Report r" +

[castor-dev] oracle date whackiness

2001-10-03 Thread Matthew Baird
hey Guys, I'm trying to use some date comparisons in both oracle and sql server, very vanilla WHERE DATE > SOMEDATE kinda stuff. I need precision down to the second. in SQL Server it works great. In oracle the default is DAY level of precision, unless I do the following where DATE > to_date('199

Re: [castor-dev] Bug: Repeatable Sequence

2001-10-03 Thread Arnaud Blandin
Hi Michel, This should have been fixed in the CVS, can you try the CVS version and let me know if the problem is still here. Thanks, Arnaud -> -Original Message- -> From: Michel Dehennin [mailto:[EMAIL PROTECTED]] -> Sent: Wednesday, October 03, 2001 7:53 AM -> To: [EMAIL PROTECTED] ->

Re: [castor-dev] XML problems using inheritance in schema

2001-10-03 Thread Arnaud Blandin
Hi Michel, this looks like a nasty bug, I'll try to look at it when I get time. Arnaud -> -Original Message- -> From: Michel Dehennin [mailto:[EMAIL PROTECTED]] -> Sent: Wednesday, October 03, 2001 7:53 AM -> To: [EMAIL PROTECTED] -> Subject: [castor-dev] XML problems using inheritance i

Re: [castor-dev] Can I fix these bugs myself, where to start?

2001-10-03 Thread Arnaud Blandin
Hi Nikolai, We have noticed your bug report but at the moment we have only small resources to dedicate to Castor and we can't handle to fix all the bugs reported (even though they are important), we just fill those in Bugzilla in order to keep track of it. In the next 2-3 weeks, we might be abl

Re: [castor-dev] UnmarshalHandler Error Handling

2001-10-03 Thread Scott Brown
Thanks very much for your response, Keith. We have found a couple of other very minor patches that we'd like to make. Is sending the diff to this list the preferred way of submitting these patches? Keith Visco wrote: > We understand your concerns. We'll need to look at it. The reason it > buil

[castor-dev] XML problems using inheritance in schema

2001-10-03 Thread Michel Dehennin
Hi folks, We're experiencing problems with Castor XML when using inheritance between complexTypes in out schema definitions. We'd very much appreciate if someone could help us identify what we're doing wrong, or in case of a bug help us fix it. Regards, Michel Dehennin Based on the schema defi