--- Jordan Thomas <[EMAIL PROTECTED]> wrote:
> Hi All,
>
> Why is my entityPK not working? It was working but
> now it had decided to
> stop working. (Likeley story...) I am not sure why
> as I tried on an old
> version of the code and that worked and that looks
> exactly the same except
> for the addition of the @ejb.pk tag but removing
> that makes no difference.
> Here is a sample of the code that I am trying to
> generate the PK from. Any
> ideas would be great. I am at an end here.
>
> thanks
>
> Jordan
>
> /**
> * @ejb.bean type="CMP" cmp-version="2.x"
> name="Account"
> * local-jndi-name="ejb/AccountLocal"
> view-type="local"
> * primkey-field="id" reentrant="false"
> * @ejb.util generate="physical"
> * @ejb.pk generate="true"
> * @ejb.data-object container="true" setdata="true"
> * generate="true"
> * @ejb.finder signature="Collection findAll()"
> * result-type-mapping="Local"
> method-intf="LocalHome"
> * query="SELECT OBJECT(o) FROM Account o"
> * @ejb.persistence table-name="account"
> */
> public abstract class AccountBean implements
> EntityBean {
>
> ....
>
> /**
> * Returns the id
> *
> * @return the id
> * @ejb.pk-field
> * @ejb.interface-method view-type="local"
> * @ejb:transaction type="Required"
> * @ejb.persistence column-name="id"
> * @jboss:jdbc-type type="INTEGER"
> * @jboss:sql-type type="INT(11)"
> */
> public abstract java.lang.Integer getId();
Well, you say xdoclet that you would like to use
Integer as primary key, and it is stored in Id field.
So, no PK generated...
regards,
=====
Konstantin Priblouda ( ko5tik ) Freelance Software developer
< http://www.pribluda.de > < play java games -> http://www.yook.de >
< render charts online -> http://www.pribluda.de/povray/ >
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
-------------------------------------------------------
This SF.net email is sponsored by: Microsoft Visual Studio.NET
comprehensive development tool, built to increase your
productivity. Try a free online hosted session at:
http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en
_______________________________________________
Xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user