@mohideen_beg wrote:
Hi
I am trying to generate a session facade for my entities. Does anybody have some sample code for this? (XDoclet samples)
Thanks
Here is an XDoclet snippet from an entity bean that may get you started:
* * @ejb.facade description = “Generated session facade for CarrierCycleDates”
* jdni-name = “CarrierDatesDB”
* local-jndi-name = “CarrierDatesDB”
* view-type = “both”
* type = “Stateful”
* transaction-type = “container”
Make sure that you add the “entityfacade” tag to the ejbdoclet structure before you run XDoclet.
Also, see this note for hints on generating the facade session bean interfaces (you have to do a little editing) and build your beans in a couple of steps:
http://www.myeclipseide.com/modules.php?op=modload&name=PNphpBB2&file=viewtopic&t=1792
Still working on getting this working completely…..
Rich