Study the examples in samples. The idea is that you create a java file
containing all bean logics and then the ejbdoclet creates the bean, data,
primary key, homeinterface and remoteinterface classes as well the ejb-jar
and jboss specific xml:s. You do this by inserting "javadoc" comments in
your code and executing ejbdoclet with Ant. Here's an example:
/**
* @ejb:entity-cmp
* @ejb:ejb-name Report
* @ejb:jndi-name ejb/Report
* @ejb:finder Collection findByMatch(Integer projectid, Date fromDate,
Date toDate, String description, String userName)
* @ejb:transaction Required
* @ejb:permission user
* @ejb:data-container false
* @ejb:remote-extends BasicRemote
*
*/
public abstract class ReportBean
{
private DataSource ds;
private EntityContext ctx;
/**
* Id of this Report.
* @ejb:pk-field
* @ejb:persistent-field
*/
public abstract Integer getId();
public abstract void setId(Integer id);
...
Regards,
Pelle Poluha
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Devraj
> Mukherjee
> Sent: den 2 juli 2001 13:34
> To: JBoss List Serve
> Subject: [JBoss-user] EJBDoclet
>
>
> I have downloaded EJBDoclet as suggested, can some one tell
> me how to use it ?
>
> Thanks.
> Devraj
>
>
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
>
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user