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

Reply via email to