On Tue, 2004-04-27 at 11:49, Harkness, David wrote:
> Karsten Jahn wrote:
> > The problem is, that xdoclets generates a PKClass
> > java.lang.Object for me.
>
> The @ejb.pk tag has other options, like
>
> @ejb.pk generate="false"
>
> although the docs say it won't generate if it's in the java.
Karsten Jahn wrote:
> I don't have getters and setters for these fields.
Hmm, if you don't have accessors (can you?), XDoclet can't determine the
type when you use @ejb.bean primkey-field, so that may be out. From my
understanding, @ejb.pk is used only when you specifically need to
declare some cu
Karsten Jahn wrote:
I'm using JBoss.
The unknownPK is not the problem. Autoincrement works fine and I don't have
getters and setters for these fields.
The problem is, that xdoclets generates a PKClass java.lang.Object for me.
However, maybe you understand what I mean, when I post the code. Not maki
I'm using JBoss.
The unknownPK is not the problem. Autoincrement works fine and I don't have
getters and setters for these fields.
The problem is, that xdoclets generates a PKClass java.lang.Object for me.
However, maybe you understand what I mean, when I post the code. Not making
it too big, I le
Karsten Jahn wrote:
>[Rupp, Heiko wrote:]
>> If you have a one field-pk, then use
>>
>> /**
>> * @ejb.bean primkey="bar"
>> */
>> class foo {
>>
>> Object getBar();
>
> Not really...
>
> The PK is unknown (generated by MySQL / JBoss). Working with
> an unknownPK the ClassTag has to be like t
Karsten Jahn wrote:
Not really...
The PK is unknown (generated by MySQL / JBoss). Working with an unknownPK
the ClassTag has to be like this:
* @ejb.pk class = "java.lang.Object"
And when I run XDoclet now, it thinks that's a class it has to generate.
But, well, I don't want that standard class t
Not really...
The PK is unknown (generated by MySQL / JBoss). Working with an unknownPK
the ClassTag has to be like this:
* @ejb.pk class = "java.lang.Object"
And when I run XDoclet now, it thinks that's a class it has to generate.
But, well, I don't want that standard class to be overwritten...
Just guessing, as I don't know your source
You are probably doing
clas foo {
/** @ejb.pk-field */
Object getBar();
If you have a one field-pk, then use
/**
* @ejb.bean primkey="bar"
*/
class foo {
Object getBar();
Or?
---
Thi