//* primkey-field="recordid"
Delete the // and will work :)
Simone
Craig Hamilton writes:
I am using 1.2b2.
Running ejbdoclet task is not creating the necessary prim-key node in my ejb-jar.xml file.
I have included the class level tags, as well as the signature/tags for the primary key field.
I have a hunch it has something to do with the generate=false, but don't I need that when I am using Integer as my primary key.
thanks in advance,
craig
package test;
import javax.ejb.*;
import java.util.*;
/**
* This is the Activity entity bean. It is an example of how to use the
* EJBDoclet tags.
*
* @see *
* @ejb.bean
* name="ActivityBean"
* type="CMP"
* cmp-version="2.x"
* jndi-name="Activity"
* local-jndi-name="LocalActivity"
//* primkey-field="recordid"
* * @ejb.interface
* remote-class="test.ActivityRemote"
* local-class="test.ActivityLocal" @ejb.pk * class="java.lang.Integer"
* generate="false"
* @ejb.persistence * table-name="kcactivity" * @jboss.create-table "false"
* @jboss.remove-table "false"
*
*
* @ejb.transaction
* type="Required"
*
* //* @ejb.finder
//* signature="java.util.Collection findAll()"
//* unchecked="true"
// @ejb.value-object
// name="Account"
// match="*"
* * @version 1.5
*/
public abstract class ActivityBean implements EntityBean
....
/**
* Returns the ID
* * @return the ID
* @ejb.persistent-field * @ejb.persistence
* column-name="recordid"
* @ejb.interface-method
* view-type="local"
* @ejb.pk-field
*/
public abstract Integer getRecordID();
public abstract void setRecordID(Integer id);
-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld http://www.vasoftware.com
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user
------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user
