Can you please clarify about the ejbCreate method that needs to be added? I have been struggling with how to add new EJBs which are composites of other EJBs in 1:1 . with 1:N there are methods for adding new VO's but not for 1:1 .
Currently I am programmatically creating the new (dependent) Bean and then getting its VO and setting my parent bean's VO to point to the new dependent VO. Is there a better way ? (I had asked a question about this to the list a couple of weeks ago but no response) > > From: Andrew Stevens <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED] > Date: 24 Mar 2003 21:20:27 +0000 > Reply-To: [EMAIL PROTECTED] > > On Mon, 2003-03-24 at 20:20, Hunter Hillegas wrote: > > I have xdoclet generating value objects for my CMP entities. That's > working > > fine. > > > > xdoclet doesn't seem to add the value object methods (getXXX()) to the > local > > interfaces I am using. Is there a way to have it do this? Otherwise, I > have > > a hard time using the value objects. > > If you want the getters and/or setters to appear in interfaces, you need > to tag them with an @ejb.interface tag. "How do I do that, when they're > generated in the CMP subclass?" I hear you ask. Simple, just add an > abstract method with the same signature in your bean class and put the > tag on that. > > If you're using composite VOs, you'll need to add appropriate ejbCreate > methods in the related bean class as well. > > > Andrew. > > > > ------------------------------------------------------- This SF.net email is sponsored by: The Definitive IT and Networking Event. Be There! NetWorld+Interop Las Vegas 2003 -- Register today! http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en _______________________________________________ xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user
