this is the line that fails * result-type-mapping="$table.resultTypeMapping"
Velocity seems not recognize this variable ... don�t know.. Where is this variable setted ? I am using oracle 8.i with weblogic 7 The table is the one below cmp20.tables.T_USERS_NSC.base-class-name=UserNSC cmp20.tables.T_USERS_NSC.columns.CRE_DATE.java-name=creDate cmp20.tables.T_USERS_NSC.columns.CRE_DATE.java-type=java.sql.Timestamp cmp20.tables.T_USERS_NSC.columns.CRE_DATE.local-get=true cmp20.tables.T_USERS_NSC.columns.CRE_DATE.local-set=true cmp20.tables.T_USERS_NSC.columns.CRE_DATE.remote-get=false cmp20.tables.T_USERS_NSC.columns.CRE_DATE.remote-set=false cmp20.tables.T_USERS_NSC.columns.LOGON_ID.java-name=logonId cmp20.tables.T_USERS_NSC.columns.LOGON_ID.java-type=java.lang.String cmp20.tables.T_USERS_NSC.columns.LOGON_ID.local-get=true cmp20.tables.T_USERS_NSC.columns.LOGON_ID.local-set=false cmp20.tables.T_USERS_NSC.columns.LOGON_ID.remote-get=false cmp20.tables.T_USERS_NSC.columns.LOGON_ID.remote-set=false cmp20.tables.T_USERS_NSC.columns.NSC_CODE.java-name=nscCode cmp20.tables.T_USERS_NSC.columns.NSC_CODE.java-type=java.lang.String cmp20.tables.T_USERS_NSC.columns.NSC_CODE.local-get=true cmp20.tables.T_USERS_NSC.columns.NSC_CODE.local-set=false cmp20.tables.T_USERS_NSC.columns.NSC_CODE.remote-get=false cmp20.tables.T_USERS_NSC.columns.NSC_CODE.remote-set=false cmp20.tables.T_USERS_NSC.columns.UPD_DATE.java-name=updDate cmp20.tables.T_USERS_NSC.columns.UPD_DATE.java-type=java.sql.Timestamp cmp20.tables.T_USERS_NSC.columns.UPD_DATE.local-get=true cmp20.tables.T_USERS_NSC.columns.UPD_DATE.local-set=true cmp20.tables.T_USERS_NSC.columns.UPD_DATE.remote-get=false cmp20.tables.T_USERS_NSC.columns.UPD_DATE.remote-set=false cmp20.tables.T_USERS_NSC.columns.USER_ID.java-name=userId cmp20.tables.T_USERS_NSC.columns.USER_ID.java-type=java.lang.String cmp20.tables.T_USERS_NSC.columns.USER_ID.local-get=true cmp20.tables.T_USERS_NSC.columns.USER_ID.local-set=true cmp20.tables.T_USERS_NSC.columns.USER_ID.remote-get=false cmp20.tables.T_USERS_NSC.columns.USER_ID.remote-set=false cmp20.tables.T_USERS_NSC.generate-pk-class=true -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Eivind Waaler Sent: lunes, 24 de mayo de 2004 15:47 To: [EMAIL PROTECTED] Subject: RE: [Middlegen-user] middlegen + value objects + {0} option in pa ckage name That is weird. What database are you using? Could you give an example of a table that doesn't work? Seems to work for the example tables i hsqldb.. .eivind On Mon, 24 May 2004, Perez Pola, Jorge wrote: > Thanks, > I have download it yet from cvs. > but know I get the followinr error : <<The value > '$table.resultTypeMapping' specified for parameter > 'result-type-mapping' of ejb:finder tag in ... class is not valid. > Valid values for this tag are: {Local,Remote}. > > the bean class > > * @ejb.finder > * signature="java.util.Collection findByUserName(java.lang.String userName)" > * result-type-mapping="$table.resultTypeMapping" > > Am I missing something ? > > regards > jorge > > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Eivind Waaler > Sent: viernes, 21 de mayo de 2004 16:56 > To: [EMAIL PROTECTED] > Subject: Re: [Middlegen-user] middlegen + value objects + {0} option in package name > > > 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 > _______________________________________________ > middlegen-user mailing list [EMAIL PROTECTED] > http ------------------------------------------------------- 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 _______________________________________________ middlegen-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/middlegen-user ------------------------------------------------------- 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 _______________________________________________ middlegen-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/middlegen-user
