Re: [castor-dev] read-only fields for dependent objects

2003-11-10 Thread Stephen Ince
Bruce, You are right the sql read-only works if you update the object in a short transaction and that is what I was looking for any way. thanx. Steve - Original Message - From: "Bruce Snyder" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, November 10, 2003 1:44 AM Subject

Re: [castor-dev] changing castor jdo mapping file

2003-11-10 Thread Werner Guttmann
Steffen, top of my memory, once you've made the changes to jdo-conf.xsd, you'll need to (selectively) run this XML Schema instance through the SourceGenerator and have a new Database.java generated. Copy this file to the org.exolab.castor.jdo.conf package, and look for (I believe) DatabaseRegi

Re: [castor-dev] unmarshalling doesnt invoke custom field handler

2003-11-10 Thread Keith Visco
lic float getAmount() { > return this.amount; > } > > public SimpleVO() { > Random r = new Random(); > this.orderDate = Calendar.getInstance().getTime(); > this.quantity = r.nextInt(); >

[castor-dev] changing castor jdo mapping file

2003-11-10 Thread Schlachter, Steffen (LDS)
Hi!   I am trying to add a property (i.e. an attribut) to the database element of the database config file (database.xml), e.g.     I was successful in rebuilding the jars but Castor did not seem to read the value from the config file.   What I did was:   - extend the Database class in th

Re: [castor-dev] [JDO] Java type mapping for NUMERIC(10) - ORA-01461: can bind a LONG value only for insert into a LONG column

2003-11-10 Thread Bruce Snyder
This one time, at band camp, Konrad said: K>After doing more research and extensive testing, it K>was discovered that the issue was not a Castor mapping K>type one, but rather a bug in WebLogic. K> K>Apparently, when using WebLogic6.1sp2's jDriver for K>Oracle with a multibyte (UTF8) Oracle databa

Re: [castor-dev] a general question

2003-11-10 Thread Werner Guttmann
Michael, let me try to address some of your questions, but not necessarily in order. When you have a situation like this where there is a relationship netween two classes (B and C in your case), things behave quite different from what you seem to be expecting. When you load an instance b

Re: [castor-dev] [JDO] Java type mapping for NUMERIC(10) - ORA-01461: can bind a LONG value only for insert into a LONG column

2003-11-10 Thread Konrad
Hi Ralf and all. Thanks for your reply. After doing more research and extensive testing, it was discovered that the issue was not a Castor mapping type one, but rather a bug in WebLogic. Apparently, when using WebLogic6.1sp2's jDriver for Oracle with a multibyte (UTF8) Oracle database, the ORA-0

[castor-dev] a general question

2003-11-10 Thread michael simons
Hi, This might be a little off topic, but we have discussed it a lot here. How do You manage problems like the following: You have two objects b, c of two classes B, C where b references c. (b -> c) At the beginning b and c are persistent. You change b and commit the change. So now b and c are

Re: [castor-dev] unmarshalling doesnt invoke custom field handler

2003-11-10 Thread Anand Raman
---<<< java.lang.IllegalStateException: Invalid dateTime format: 20031110 at org.exolab.castor.xml.handlers.DateFieldHandler.setValue(DateFieldHandle r.java:202) at org.exolab.castor.xml.UnmarshalHandler.endElement(UnmarshalHandler.java: 852) at org.exolab.castor.xml.U

[castor-dev] Default Namespace

2003-11-10 Thread Rainer Mueller
Hi, we have a problem with the default namespace using Castor 0.9.5.2 I tried both statements marshaller.setNamespaceMapping("", "http://www.vpbank.com/ebanking";); marshaller.setNamespaceMapping(null, "http://www.vpbank.com/ebanking";); but it generates elements with de but the xmlns=""

[castor-dev] unmarshalling doesnt invoke custom field handler

2003-11-10 Thread Anand Raman
xtFloat() * quantity; } } This is the stack trace which I encounter while unmarshalling the xml org.xml.sax.SAXException: unable to add 'order-date' to due to the following exception: >>>--- Begin Exception ---<<< java.lang.IllegalStateExcepti

Re: [castor-dev] CVS snapshot incomplete and does not compile

2003-11-10 Thread Keith Visco
Hi guys, I don't have the missing classes from Arnaud, the work-around I'm using is to checkout out the src/tests directory using a date prior to Arnaud's last checkin, and then I just make sure to just update the src/main tree and not the tests when I do an update. Hopefully Arnaud will get tha

Re: [castor-dev] CVS snapshot incomplete and does not compile

2003-11-10 Thread Bruce Snyder
This one time, at band camp, Marc Lehnert said: ML>I've downloaded a clean copy of the CVS tree but the "build all" fails ML>because the testsuite is incomplete. Some classes are missing in the ML>repository. ML> ML>[javac] D:\castor\src\tests\main\org\exolab\castor\tests\framework\XMLTestCa M

Re: [castor-dev] Find by related Object

2003-11-10 Thread Bruce Snyder
This one time, at band camp, Clemens Kadura said: CK>p {margin: 0px}p {margin: 0px}Hello, CK> CK>I have the following question and dont know if this can be categorized as a bug or is it an enhancement? CK> CK>I want to describe the issue as following (derived from the LazyLoading testcase): CK> C

Re: [castor-dev] Adding indirection to xsi:type

2003-11-10 Thread Keith Visco
"Mujtaba,Shelly" wrote: > > >I believe if you add to the field mapping it > should use that instead of the class name during marshalling. > > But Keith, we don't know until runtime if the concrete class would be a > person or org. Sorry Shelly, you're right. You might want to try looking at i