Aston, Aaron (MBS) wrote: > However, I can't seem to get a create() method generated in my local > home interface. I have the following in my bean source: > > /** > * @ejb.bean > * type="CMP" > * cmp-version="2.x" > * view-type="local" > * > * @ejb.pk > * class="java.lang.Integer"
I don't know if this could be related (bug in one area creating a bug in another area), but if you have a single-column PK you can simply denote this as * @ejb.bean * primkey-field="id" It will figure out the class from the field's abstract accessor. Looking back at my (old old) code, I see I also specify * @ejb.pk-field on the getId() accessor. I cannot remember if this ended up being necessary or if I was merely being pedantic. Regardless, it works so you might want to give it a try. I do know there's a bug in XDoclet that makes it generate a custom PK class even if you specify a java.lang class (the docs say otherwise, and this is logged in JIRA). > /** > * @ejb.create-method > * view-type="local" > */ > public Integer ejbCreate(Integer id, String title, String > content) throws CreateException I've never used the view-type on @ejb.create-method; perhaps this is broken. By having the view-type tag at the class-level (@ejb.bean view-type="local", which you have), you don't need to specify the view-type for all the other methods -- only the local home and interface will be generated anyway. Otherwise, your code looks fine. Good luck! David Harkness Sr. Software Engineer Sony Pictures Digital Networks (310) 482-4756 ------------------------------------------------------- This SF.Net email is sponsored by: SourceForge.net Broadband Sign-up now for SourceForge Broadband and get the fastest 6.0/768 connection for only $19.95/mo for the first 3 months! http://ads.osdn.com/?ad_id%62&alloc_ida84&op=click _______________________________________________ xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user