Re: middlegen + value objects + {0} option in package name

Eivind Waaler <[email protected]>
Newsgroups gmane.comp.java.ejb.middlegen.user
Message-ID <[email protected]>
Hey,

I noticed there was a bug in the template, I was using
$plugin.interfacePackage instead of $table.interfacePackage. This has been
corrected, if you get the latest version from cvs.

Also make sure you specify package and interfacePackage on the
sessionblock if you're using this, as this should not change with the
other bean names.

Cheers
.eivind

On Fri, 21 May 2004, Perez Pola, Jorge wrote:

> Hi all,
>
> I am stuck in a problem with middlegen.
>
> I generate my ejb´s with their value objects succesfully this way :
>
> <cmp20 destination="${build.gen-src.dir}" package="${name}.ejb" interfacepackage="${name}.ejb" jndiprefix="${unique.name}" pkclass="false" dataobject="false" valueobject="true" sessionfacade="false" viewtype="local" mergedir="${basedir}/src/middlegen" readonly="false" fkcmp="true" guid="false">
>
> Then I try to store each ejb in a folder with its name, to do this I add the {0} to the package and interfacepackage  :
>
> 	<cmp20 destination="${build.gen-src.dir}" package="${name}.ejb.{0}" interfacepackage="${name}.ejb.{0}" jndiprefix="${unique.name}" pkclass="false" dataobject="false" valueobject="true" sessionfacade="false" viewtype="local" mergedir="${basedir}/src/middlegen" readonly="false" fkcmp="true" guid="false">
>
> Then I got the problem.
> It seems that middlegen does not 'translate' the {0} with the folder name in those methods that has references to value objects.
>
> The bean has declarations that does not compile, like this :
>
>  public java.lang.String ejbCreate(ccop.ejb.{0}.UserLightValue value) throws javax.ejb.CreateException {
>
> The template entity-cmp-20.vm is what produce the error.
>
> My ques


-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id149&alloc_id66&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.