RE: CMR/CMP Problem --> And Different Question

"Darren Hartford" <[email protected]>
Newsgroups gmane.comp.java.ejb.middlegen.user
Message-ID <[email protected]>
Hi Leander,
Also running a Maven, but I've had better success without the plugin, and rather approach it similar to an Ant task in the maven.xml file.  Maybe see if the problem still occurs outside the plugin so at least eliminate that as a culprit?

example maven.xml goal, modify to your heart's desire:
<goal name="middlegen">
	<taskdef name="middlegen" classname="middlegen.MiddlegenTask">
		<classpath>
			<path refid="maven.dependency.classpath"/>
		</classpath>
	</taskdef>

	<middlegen
		appname="${pom.artifactId}"
		prefsdir="${basedir}" 
		gui="false"
		databaseurl="jdbc:blah://blah/blah" 
		driver="com.blah.Driver"
		username="user"
		password="pass" 
		>

		<cmp20
			destination="${basedir}/generated/middlegen"
                        mergedir="${basedir}/src/conf/middlegen"
			package="${pom.package}.domain.ejb"
			interfacepackage="${pom.package}.domain.interfaces"
                        pkclass="false"
                        dataobject="false"
                        valueobject="true"
                        viewtype="local"
                        readonly="false"
                        fkcmp="true"
                        guid="false"
                        sessionfacade="false"
                        >
			<jboss/>
		</cmp20> 
<!--                
                <hibernate
                    destination="${basedir}/generated/hibernate"
                    package="${pom.package}.hibernate"
                    genXDocletTags="true"
                    genIntergratedCompositeKeys="false"
                    />
-->
                 />
	</middlegen> 
</goal>
=========
-D


> -----Original Message-----
> From: M.-Leander Reimer [mailto:[email protected]]
> Sent: Wednesday, August 18, 2004 7:35 AM
> To: [email protected]
> Subject: Re: [Middlegen-user] CMR/CMP Problem --> And 
> Different Question
> 
> 
> My fault, I just had a look at the current middlegen template 
> in CVS and 
> there are not ejbCreates with a value object parameter 
> anyway, only the 
> once with a LightVO as parameter. So nothing should be 
> removed :-) and 
> everythings works fine :-)
> 
> Different question: I am using Middlegen and Maven 1.0 (+ Middlegen 
> Plugin) and I am using a fileproducer with id=entity-cmp-20 
> to register 
> a custom template for the cmp20 plugin.
>  From time to time (perhaps every 15th build) Middlegen uses 
> its inbuild 
> template instead and not my custom one. Any ideas why that happens??
> 
> Cheers,
> 
> Leander
> 
> Darren Hartford schrieb:
> 
> > I have had similar issues and solutions to the CMR problem 
> generated by the VO's, but I still rather make that small 
> change than throw-out the VO code in Middlegen - it IS a huge 
> timesaver and a core part of the at least the projects I work 
> on.  I understand a lot of the devs are 
> working/waiting/working on Middlegen3 based on the new 
> framework(s), and not a lot of time has gone into the VO code 
> since its original release, but I still appreciate what is 
> there and just needs to be cleaned up a bit.
> > 
> > 
> > 
> 


-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
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.