are you _sure_ you're using the right version of castor. JBoss (from memory) ships with castor. Could it be that when running outside of JBoss you are in fact using a more recent build of castor, but when in JBoss the JBoss castor.jar is being used?
cheers dim ----- Original Message ----- From: "Arijit Ghosh" <[EMAIL PROTECTED]> To: "JBoss User" <[EMAIL PROTECTED]> Sent: Monday, September 02, 2002 4:35 PM Subject: [JBoss-user] Jboss-Castor mapping problem > I am using Jboss 3.0 with Castor. The following works perfectly as a > standalone Castor application but fails when integrated with Jboss. > > I find that --- > > 1. In 1 to 1 relationship between User table and Address table, If I > update User table along with a handle to Address table, then the > Database gets updated. Both as a standalone application as well as > inside JBoss. > > 2. In 1 to Many relationship between User table and Address table, If > I update User table, Address table gets updated if there exists an > Address handle in the User context. This is because I have set the > attribute "Collection" in the field tag of mapping.xml. Works both as a > standalone application as well as inside JBoss. > > 3. However, In 1 to 1 optional relationship i.e. User may or may NOT > have address, the operation fails. User table gets updated but not the > Address table. Only if I set the attribute "Collection" in the field tag > of mapping.xml (giving an impression of 1 to Many) and manually checking > for a single element in that collection, this works. This works > perfectly outside JBoss (without using "Collection" attribute) as a > standalone application but fails when integrated with JBoss. > > Can anyone help ? > > Regards, > Arijit > > > > ------------------------------------------------------- > This sf.net email is sponsored by: OSDN - Tired of that same old > cell phone? Get a new here for FREE! > https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390 > _______________________________________________ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user ------------------------------------------------------- This sf.net email is sponsored by: OSDN - Tired of that same old cell phone? Get a new here for FREE! https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390 _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
