>FROM: Matt Goodall
>DATE: 03/26/2002 04:34:00
>
>Hi,
>
>In the dao subtask documentation it states
>  "... Currently, only BMP entity beans are supported (support for DAOs 
>with
>the other EJB types is planned e.g. for accessing a database directly with
>JDBC in a session bean). ..."
>I would like to use "pseudo BMP", i.e. value objects via a stateless 
>session
>bean, and that comment sounds like the dao subtask will support that in the
>future. Does anyone know when this "other EJB type" support is coming and
>what the generated code will look like?
>
>Thanks, Matt

Actually, I already did it (it's in 1.1.2) but I forgot to update the 
documentation :-)

Just include an @ejb:dao class-level tag in your session bean, same as for 
an entity bean, and you'll get a generated DAO with an init method and ones 
for your (abstract) @dao:call tagged methods.  The generated session 
sub-class will include implementations for those methods that delegate to 
the DAO.  If you want to do other stuff in your methods as well as call the 
DAO, just use a private @dao:call method and call that instead in your own 
code.

The only real difference between entity and session beans is that for entity 
EJBs it adds extra methods in the DAO for load/store/remove, and calls them 
from the appropriate methods in the BMP class, and for session beans it only 
has the @dao:call methods (plus init).


Andrew.


_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com


_______________________________________________
Xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to