Hello,
I am using the Castor XML for unmarshalling /unmarshalling of the java object model.
I wish to put this functionality as a session bean.....
I am using the mapping file option for the same.
Kindly let me know if this is possible, and any inherent issues, if any.
Also let me know abt how does one access the mapping file in the above bean environment....it being an external file in the above scenario.
Regds,
Chetan Rathi
>From: Belugin Max <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: [castor-dev] DataObjectAccessException
>Date: Fri, 1 Feb 2002 15:34:41 +0300
>
>Hello castor-dev,
>
>while selecting all objects from
>com.espada.bugtracker.app.RoleInProject
>i receive the exception
>
>org.exolab.castor.jdo.DataObjectAccessException: Type conversion error: could not set value of
>FieldMolder of com.espada.bugtracker.app.RoleInProject.setproject(com.espada.bugtracker.app.Project
>project) with value of type java.lang.Integer
>
>RoleInProject is:
>
>public class RoleInProject {
> public RoleInProject() {
> }
> private com.espada.bugtracker.app.Project _project;
> private com.espada.bugtracker.app.Role _role;
> private com.espada.bugtracker.app.User _user;
> public com.espada.bugtracker.app.Project getProject() {
> return _project;
> }
> public void setProject(com.espada.bugtracker.app.Project project) {
> this._project = project;
> }
> public void setUser(com.espada.bugtracker.app.User newUser) {
> this._user = newUser;
> }
> public com.espada.bugtracker.app.User getUser() {
> return _user;
> }
> public void setRole(com.espada.bugtracker.app.Role role) {
> this._role = role;
> }
> public com.espada.bugtracker.app.Role getRole() {
> return _role;
> }
>}
>
>Mapping file is:
>
>
>
>
>
> > identity="ID">
> User
>
>
>
> <:xml node="attribute">.
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev