yes, Andromda generates everything fine, and the deployment descriptors will be fine too, but I was wondering if the Xdoclet process would be able to generate a primary-key generator from the @ejb.pk-field if this field is not of the String type

I took the time to go into the Xdoclet xdt templates and found that when you do an 'includeGUID' in <ejbdoclet>'s util generation it returns a String, /always!/
so be careful when using anything else than String as a primary key, you will need to write your own ID generator or get one somewhere else


one way of doing this is to set includeGUID to false and write a lookup-custom.xdt merge file in which you code the primary-key generator

cheers
Wouter.

Brian Topping wrote:

The PK generator is based on the type of the accessor.  The templates
generate the "@ejb.pk-field" correctly, so everything should work just
fine...



-----Original Message-----
From: Wouter Zoons [mailto:[EMAIL PROTECTED]
Sent: Friday, December 12, 2003 7:12 PM
To: Brian Topping
Cc: Elijah Ogundimu; [EMAIL PROTECTED]
Subject: Re: [Andromda-user] I want to make my PrimaryKey an integer


just wondering, will XDoclet generate an appropriate primary key generator in the xxxUtil.java files ?


Brian Topping wrote:







-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
Andromda-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/andromda-user

Reply via email to