Re: [Xdoclet-user] custom PK class with value object

2004-05-11 Thread bob combs
Harkness, David wrote: bob combs wrote: WORKING! WOOT! Had to add a null constructor into UUID to get the create() to work due to CMP wanting to do a class.newInstance(), then populate data on the primary key. Yes, and I believe that's also the reason that the PK's fields (in th

Re: [Xdoclet-user] no output + no messages. nothing

2004-05-11 Thread Erik Hatcher
On May 11, 2004, at 7:52 AM, [EMAIL PROTECTED] wrote: hacking at this ant script for hours. tried every possible permutation of the fileset. no doclets are generated and the only output is --       Buildfile: xdoclet-build.xml     xdocletIsCrap:     [hibernatedoclet] (XDocletMain.start

Re: [Xdoclet-user] no output + no messages. nothing

2004-05-11 Thread Andrew Stevens
On Tue, 2004-05-11 at 12:52, [EMAIL PROTECTED] wrote: > hacking at this ant script for hours. tried every possible permutation > of the fileset. > no doclets are generated and the only output is -- > > Buildfile: xdoclet-build.xml > xdocletIsCrap: > [hibernatedoclet] (XDocletMain.star

RE: [Xdoclet-user] custom PK class with value object

2004-05-11 Thread Harkness, David
bob combs wrote: > WORKING! WOOT! > Had to add a null constructor into UUID to get the create() > to work due > to CMP wanting to do a class.newInstance(), then populate data on the > primary key. Yes, and I believe that's also the reason that the PK's fields (in the class) need to be public --

RE: [Xdoclet-user] Maven xdoclet plugin not generating ejb-things

2004-05-11 Thread Jesus De Oliveira - Administrador de Red
Sorry, I mean, I have a plugin.properties with these contents in my home directory... > Where should thid project.properties must be? > > I have a build.properties, on my home directory: > > #ejbdoclet default properties > maven.xdoclet.ejbdoclet.destDir=${maven.build.dir}/xdoclet/ejbdoclet > >

RE: [Xdoclet-user] Maven xdoclet plugin not generating ejb-things

2004-05-11 Thread Jesus De Oliveira - Administrador de Red
Where should thid project.properties must be? I have a build.properties, on my home directory: #ejbdoclet default properties maven.xdoclet.ejbdoclet.destDir=${maven.build.dir}/xdoclet/ejbdoclet maven.xdoclet.ejbdoclet.force=true maven.xdoclet.ejbdoclet.verbose=true maven.xdoclet.ejbdoclet.files

RE: [Xdoclet-user] custom PK class with value object

2004-05-11 Thread Harkness, David
bob combs wrote: > putting the @ejb.pk-field entry back on the getId() method generates a > correct getPrimaryKey() Cool, then you're almost there, right? Or are you all the way there? I still think it's odd that it creates a PK each time you call getPrimaryKey(), but that's not so nefarious I sup

RE: [Xdoclet-user] custom PK class with value object

2004-05-11 Thread Harkness, David
bob combs wrote: > Problem lies in what's being generated in the getPrimaryKey() > in the VO: > >public com.messagegate.foundation.id.UUID getPrimaryKey() { > com.messagegate.foundation.id.UUID pk = new > com.messagegate.foundation.id.UUID(); > return pk; >} WTF?! That's truly b

RE: [Xdoclet-user] Maven xdoclet plugin not generating ejb-things

2004-05-11 Thread Marco Mistroni
hI,# how about creating a project.properties file where u define what is needed for XDoclet? there is an example at XDoclet website, follow the Maven link.. regards marco -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Jesus De Oliveira -

Re: [Xdoclet-user] custom PK class with value object

2004-05-11 Thread bob combs
WORKING! Had to add a null constructor into UUID to get the create() to work due to CMP wanting to do a class.newInstance(), then populate data on the primary key. Now I just have to make the VO inherit from somewhere or merge methods in so I can get a get/set UUID. Some form of inheritance wo

Re: [Xdoclet-user] custom PK class with value object

2004-05-11 Thread bob combs
More fun: putting the @ejb.pk-field entry back on the getId() method generates a correct getPrimaryKey() Harkness, David wrote: bob combs wrote: org.jboss.deployment.DeploymentException: Field id in prim-key-class must be the same type Ah yes, note to self: reply *after* coffee. By u

Re: [Xdoclet-user] custom PK class with value object

2004-05-11 Thread bob combs
Almost! Problem lies in what's being generated in the getPrimaryKey() in the VO: public com.messagegate.foundation.id.UUID getPrimaryKey() { com.messagegate.foundation.id.UUID pk = new com.messagegate.foundation.id.UUID(); return pk; } should be: public com.messagegate.foundation.id

Re: [Xdoclet-user] custom PK class with value object

2004-05-11 Thread bob combs
More follow-up. Seems that the name of the field is kind of issue. If I change the field name in the bean to "idd" (as in getIdd/setIdd with a matching pk-field=idd entry) the bean will deploy. However, any SQL that gets issued (either a table create or if I create the table by hand, a query)

RE: [Xdoclet-user] custom PK class with value object

2004-05-11 Thread Harkness, David
bob combs wrote: > org.jboss.deployment.DeploymentException: Field id in prim-key-class > must be the same type Ah yes, note to self: reply *after* coffee. By using a custom PK class, you still need to map the individual fields (one in your case) using the types in the PK class. So you need pu

[Xdoclet-user] Maven xdoclet plugin not generating ejb-things

2004-05-11 Thread Jesus De Oliveira - Administrador de Red
Hi, I'm trying to use the xdoclet plugin for maven, to build the classes and interfaces for enterprise javabeans. My problem is that when the xdoclet:ejbdoclet task is executed, nothing is generated, causing compilation errors because the classes and interfaces never exists. Following is the outpu

Re: [Xdoclet-user] custom PK class with value object

2004-05-11 Thread bob combs
Follow up: org.jboss.deployment.DeploymentException: Field id in prim-key-class must be the same type Here's specifically what I have now: -- package com.messagegate.mms.message.ejb; import javax.ejb.EntityBean; import com.messagegate.foundation.id.IdentifierFactory; import com.messagega

Re: [Xdoclet-user] custom PK class with value object

2004-05-11 Thread bob combs
Thanks David, but I've been that route too (you're seeing some scatterd remnants of various experiments). I get a deployment message that "field id must be of same type". Same type as what would be nice to know. I'll make everything match up both ways though and give it another go. Harkness, Da

RE: [Xdoclet-user] custom PK class with value object

2004-05-11 Thread Harkness, David
bob combs wrote: > I'm having quite a time attempting to use a CMP bean with a custom PK > class w/ support in the value object. I'm sure I'm missing something > fairly simple. > > [...] > > In the Bean xdoclet > > /** > * @ejb.bean name="Message" > * pk-field="id" ^^ > **/

RE: [Xdoclet-user] Supressing the Generation of a CMP Value Object?

2004-05-11 Thread Harkness, David
Bruno Beloff wrote: > I'm sure this would work. My only concern is that - by putting my > code in the template - I've made it harder to modify and develop the > code. But that's not a significant problem in most situations. The key would be to put code into the template that would *generate* your

RE: [Xdoclet-user] [Xdoclet 1.2] Generated EJBHome contains JNDI name?

2004-05-11 Thread Harkness, David
DDU DUQUENNOY Didier wrote: > Just a question : is it possible to avoid generating the > constant "JNDI_NAME" in the Home class? You could modify the template to remove it. I don't know of an configuration option. > Actually, I don't understand why it is there since the JNDI > Name of an EJB may

Re: [Xdoclet-user] Excessive XDoclet generation times

2004-05-11 Thread Shaun
Setting the force attribute to false seems to have done the trick.  Thanks Erik.   Shaun  

Re: [Xdoclet-user] no output + no messages. nothing

2004-05-11 Thread Erik Hatcher
On May 11, 2004, at 7:52 AM, [EMAIL PROTECTED] wrote: hacking at this ant script for hours. tried every possible permutation of the fileset. no doclets are generated and the only output is --       Buildfile: xdoclet-build.xml     xdocletIsCrap:     [hibernatedoclet] (XDocletMain.start

[Xdoclet-user] no output + no messages. nothing

2004-05-11 Thread [EMAIL PROTECTED]
hacking at this ant script for hours. tried every possible permutation of the fileset.no doclets are generated and the only output is --       Buildfile: xdoclet-build.xml    xdocletIsCrap:    [hibernatedoclet] (XDocletMain.start   47  ) Running     BUILD SUCCESSFUL    Tot

Re: [Xdoclet-user] Excessive XDoclet generation times

2004-05-11 Thread Erik Hatcher
It does compare timestamps itself - it takes a little time to do this, but much less than doing actual generation followed by subsequent recompilation and repackaging of things that did not change. Be sure you are not setting the force attribute. Erik On May 11, 2004, at 5:32 AM, Shaun wrote

[Xdoclet-user] Excessive XDoclet generation times

2004-05-11 Thread Shaun
Is there any plan to enable XDoclet to only generate code if a source file has changed since the last generation?  Currently I am using tasks in ant to accomplish this, but it seems that it would be nicer if XDoclet did this inherently.  Or does it compare timestamps inherently and I am jus

[Xdoclet-user] [Xdoclet 1.2] Generated EJBHome contains JNDI name?

2004-05-11 Thread DDU DUQUENNOY Didier
Hi, I'm using XDoclet 1.2 to generate the Home and Remote interface of my EJBs. Just a question : is it possible to avoid generating the constant "JNDI_NAME" in the Home class? Actually, I don't understand why it is there since the JNDI Name of an EJB may change at deployment time... Thanks,

Re: [Xdoclet-user] Supressing the Generation of a CMP Value Objec t?

2004-05-11 Thread Bruno Beloff
Lorraine Thank you, this looks great. I will try to do this by creating an abstract class which is extended by both the Bean class and the VO. This abstract class can introduce the persisted fields as abstract getters, this allows the compareTo(..) do to its stuff. This feels slightly weird

RE: [Xdoclet-user] webdoclet. how to include ..still not solved

2004-05-11 Thread Marco Mistroni
Title: Re: [Xdoclet-user] Specifying a remove method on the home interface? Hi all,     Don’t wanna spam the list, but I can’t figure out what is the problem. I am using xdoclet -1.2.1 together with maven. I want to generate the in web.xml. So I went to check the maven xdoclet

Re: [Xdoclet-user] Supressing the Generation of a CMP Value Object?

2004-05-11 Thread Bruno Beloff
David Thank you very much for this. I'm sure this would work. My only concern is that - by putting my code in the template - I've made it harder to modify and develop the code. But that's not a significant problem in most situations. Cheers, Bruno. On 10 May 2004, at 19:36, Harkness, Davi