I am having problems with the BMP files that xdoclet is generating (built from CVS today).
1) It is generating two variables for dirty. See at the beginning of the class and right before the serialVersionId; 2) It isn't generating the makeClean function. When I look at the entitybmp.j which then calls the entity-cmp11.j and entity-body.j template files, it looks like the entity-body.j template should only put the variable in once and the entity-cmp11.j should put in all 3 functions?? Anyone have any ideas why it is doing this? I have tried cleaning my classpath to make sure no other templates are in it, opened the jar file I am using to check the templates, etc, etc, and I cannot figure it out. Thanks for any help. mp ############################################################################ ############################### # The following file is generated: ############################################################################ ############################### import java.lang.*; import javax.ejb.*; /** * BMP layer for TestConfig. * @xdoclet-generated at Jan 31, 2002 6:24:46 PM */ public class TestConfigBMP extends securestate.nessus.ejb.TestBean implements javax.ejb.EntityBean { private boolean dirty; public java.lang.String id; public java.lang.String getId() { return this.id; } public void setId( java.lang.String id ) { this.id = id; makeDirty(); dataHolder = null; } public boolean isModified() { return dirty; } protected void makeDirty() { dirty = true; } private boolean dirty; static final long serialVersionUID = 8732983593983267254L; private securestate.nessus.ejb.TestConfigData dataHolder; public void setData( securestate.nessus.ejb.TestConfigData dataHolder ) { try { this.dataHolder = null; } catch (Exception e) { throw new javax.ejb.EJBException(e); } } public securestate.nessus.ejb.TestConfigData getData() { if( dataHolder == null ) { try { dataHolder = new securestate.nessus.ejb.TestConfigData(); dataHolder.setId( getId() ); } catch (Exception e) { throw new javax.ejb.EJBException(e); } } return dataHolder; } public void ejbLoad() { makeClean(); dataHolder = null; } public void ejbStore() { if (isModified()) { super.ejbStore(); } makeClean(); } public void ejbActivate() { } public void ejbPassivate() { dataHolder = null; } public void setEntityContext(javax.ejb.EntityContext ctx) { } public void unsetEntityContext() { } public void ejbRemove() { } } ############################################################################ ############################### # From this file ############################################################################ ############################### import javax.ejb.*; /** * * @ejb:bean name="TestConfig" type="BMP" jndi-name="ejb/TestConfig" primkey-field="id" * @ejb:pk class="java.lang.String" * @ejb:data-object container="false" */ public abstract class TestBean implements EntityBean { /** * * @ejb:interface-method * @ejb:pk-field * @ejb:persistent-field * * @jboss:column-name "pk" */ abstract public String getId(); /** * * @ejb:interface-method */ abstract void setId(String id); public abstract securestate.nessus.ejb.TestConfigData getData(); abstract public boolean isModified(); abstract protected void makeClean(); abstract protected void makeDirty(); public void ejbStore() { if (isModified()) { securestate.nessus.ejb.TestConfigData data = this.getData(); // store this data makeClean(); } } } _______________________________________________ Xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user