One other thing, you'll want to set the required="false" (http://team.andromda.org/docs/andromda-cartridges/index.html) property on your template that generates the entity-impls, that way andromda won't complain if you don't have any entity-impls defined in your namespace (in that case you wouldn't need to add the "ignore" stuff).
----- Original Message ----- From: "Chad Brandon" <[EMAIL PROTECTED]> To: "Jorge Middleton" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Friday, July 30, 2004 8:03 AM Subject: Re: [Andromda-user] hibernate > What you can do is a add <property reference="entity-impls" default=""/> to > your andromda-cartridge.xml. This will make the value of whatever you > specify as "entity-impls" in your namespace available to your template as > the "$entity-impls" property (if it isn't defined it gives it a default > empty String value). Then you can check whether or not this property exists > in your templates to determine whether or not to generate. > > Chad > > ----- Original Message ----- > From: "Jorge Middleton" <[EMAIL PROTECTED]> > To: "Chad Brandon" <[EMAIL PROTECTED]> > Sent: Friday, July 30, 2004 7:58 AM > Subject: Re: [Andromda-user] hibernate > > > > Ok. Its true if I add <ignore.entity-impls/> the cartridge doesn't > > create a Impl class, but the Factory already use the Impl class. > > Is it possible to access the property ignore.entity-impls of hibernate > > dependency of maven from the HibernateEntityFactory.vsl, so I can > > figure out if the Impl class its generated??? > > > > Thanks, > > Jorge > > > > On Tue, 27 Jul 2004 18:58:02 -0400, Chad Brandon <[EMAIL PROTECTED]> > wrote: > > > Hi Jorge, > > > > > > Yes you can ignore the generation of the entity Impls, just add an > > > ignore="true" to the "entity-impls" namespace property (if Ant) or if > maven > > > you'd add <ignore.entity-impls/> to your hibernate cartridge dependency > > > properties. However you'll need to change the cartridge if you don't > want > > > the factories to be generated since they are currently generated along > with > > > the entities. > > > > > > Chad > > > > > > > > > > > > ----- Original Message ----- > > > From: "Jorge Middleton" <[EMAIL PROTECTED]> > > > To: <[EMAIL PROTECTED]> > > > Sent: Tuesday, July 27, 2004 6:17 PM > > > Subject: [Andromda-user] hibernate > > > > > > > Hi, > > > > > > > > I'm making a <<Entity>> to generate the hibernate mapping and I see > > > > that AndroMDA generates an Impl class and a Factory class. > > > > Is it posible to configure AndroMDA for to ignore the generation of > > > > Impl and Factory classes? or I have to change the cartridge? > > > > > > > > AndroMDA generate an Impl and Factory per each Entity in my model?? > > > > > > > > Thanks in advance > > > > Jorge L. Middleton > > > > > > > > > > > > ------------------------------------------------------- > > > > This SF.Net email is sponsored by BEA Weblogic Workshop > > > > FREE Java Enterprise J2EE developer tools! > > > > Get your free copy of BEA WebLogic Workshop 8.1 today. > > > > http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click > > > > _______________________________________________ > > > > Andromda-user mailing list > > > > [EMAIL PROTECTED] > > > > https://lists.sourceforge.net/lists/listinfo/andromda-user > > > > > > > > > > > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by OSTG. Have you noticed the changes on > Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now, > one more big change to announce. We are now OSTG- Open Source Technology > Group. Come see the changes on the new OSTG site. www.ostg.com > _______________________________________________ > Andromda-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/andromda-user ------------------------------------------------------- This SF.Net email is sponsored by OSTG. Have you noticed the changes on Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now, one more big change to announce. We are now OSTG- Open Source Technology Group. Come see the changes on the new OSTG site. www.ostg.com _______________________________________________ Andromda-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/andromda-user