Hi there Xdoclet users,

I have a question regarding value objects and the reetrant issue. I know it has 
been talked about a lot and I have scoured the archives for a solution, but my 
problem still exists...

I am using weblogic8.1 and container mananged persistence. I am developing a 
timesheet application. Anyway, I have a 1:n relationship between a timesheet 
and a shift. Implemented as follows:

/**
         * @ejb.relation
         *  name="Timesheet-Shift"
         *  role-name="timesheet-has-shifts"
         * @weblogic.target-column-map
         *  foreign-key-column="C_TIMESHEET_ID"
         *  key-column="C_TIMESHEET_ID"
         * @ejb.interface-method
         *  view-type="local"
         * @ejb.value-object
     *  compose="au.gov.qld.des.aftimesheet.dto.ShiftTransferObject"
     *  compose-name="Shift"
     *  members="au.gov.qld.des.aftimesheet.ejb.ShiftLocal"
     *  members-name="Shift"
     *  relation="external"
     *  type="java.util.Collection"
         */
        public abstract java.util.Collection getShifts();

        /**
         * @ejb.interface-method view-type="local"
         */
        public abstract void setShifts(java.util.Collection shifts);

I am creating two timesheet value objects, one which is a 
"TimesheetLightTransferObject" and does not include this relationship as a 
strategy to avoid the reentrant problem.

The Shift bean on the N side of the relationship has it's relationship defined 
as follows:

/**
         * @ejb.relation name="Timesheet-Shift"
         *      role-name="shift-belongs-to-timesheet"
         * @ejb.value-object
     *  aggregate="au.gov.qld.des.aftimesheet.dto.TimesheetLightTransferObject"
     *  aggregate-name="Timesheet"
     *  relation="external"
     * @weblogic.column-map
     *  foreign-key-column="C_TIMESHEET_ID"
     *  key-column="C_TIMESHEET_ID"
         */
        public abstract TimesheetLocal getTimesheet();

        public abstract void setTimesheet(TimesheetLocal timesheetLocal);

Please note that the "setTimesheet" method has no @ejb.interface, but is still 
showing up in the generated value object??

However, having done all this weblogic is still chucking a fit (ie, 
ReentrantException), whenever I try to uupdate a timesheet through the local 
interface from my session bean. I have scoured mailing lists and sites for the 
last 2 days to no avail. Any assistance would be greatly appreciated.

Cheers,
Matt.


Matt Shaw
Snr Applications Developer
Service Performance & Management Unit
Phone: 3247 8666. ext. 94666


This correspondence is for the named persons only.
It may contain confidential or privileged information or both.
No confidentiality or privilege is waived or lost by any mis transmission.
If you receive this correspondence in error please delete it from your system 
immediately and notify the sender.
You must not disclose, copy or relay on any part of this correspondence, if you 
are not the intended recipient.
Any opinions expressed in this message are those of the individual sender 
except where the sender expressly,
and with the authority, states them to be the opinions of the Department of 
Emergency Services, Queensland.


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
xdoclet-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to