Folks,
I have a requirement to create a single PK (e.g. com.abc.common.pk.PK) class
which will be used by all the entity bean(s). Which means all the entity
bean(s) would not have any Method or any Field as the primary key(s). In
addition, I don't even generate the pk via ejbdoclet 1.2 (i.e. no <entitypk
pattern="{0}${pk.postfix}" /> in my build.xml). However, it seems that the
findByPrimaryKey of home interface would always assume that I have a primary
key class as follows:
public com.abc.global.ejb.entity.Commodity
findByPrimaryKey(com.abc.global.ejb.entity.CommodityPK pk)
throws java.rmi.RemoteException,javax.ejb.FinderException;
Anyway that I can work around that (i.e. with com.abc.common.pk.PK as my PK
all the time). For example,
public com.abc.global.ejb.entity.Commodity
findByPrimaryKey(com.abc.common.pk.PK pk)
throws java.rmi.RemoteException,javax.ejb.FinderException;
P.S.
I tried to use the following tag, but nothing happen 8(
* @ejb:pk-field type="com.abc.common.pk.PK" name="pk"
Thanks in advance 8)
Chris
_______________________________________________
Xdoclet-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/xdoclet-user