Sounds very interesting. We have a very similar architecture on my current
Maybe we could include something in a later version. Guess it would
require some rewrites of existing plugins. I'd like to refactor/remove the
adapter plugin to be more like the above mentioned architecture. That way
different persistence mechanisms (Hibernate, CMP, Torque, JDO..). The
I'd like to continue this discussion later..
Post by Joel HillacreI figured it out. I was adding multiple file producers and had a ID-10-T error
while I was typing in the file name of the last vm template... :[
We are moving our project to a new architecture using struts, spring and
hibernate. With middlegen having a hibernate plugin and a struts plugin, we
decided to just write the spring plugin ourselves. My boss also seems
interested in releasing it back out to the middlegen project, since it can
only get better from there. :) Right now, the spring plugin a very simple
DAO using hibernate, and an interface for use in a struts action, which would
include business rules. It has been coming together nicely, even though I
have only started poking around in w/middlegen this last week. I am hoping
to have something more solid next week.
Thanks for your interest
Joel Hillacre
Post by Eivind WaalerHmm, sounds like some kind of classloader issue. Are you sure your plugin
class is not found multiple places in the classpath? For instance if
there's an old version of your jar file without the .vm file somewhere?
Try a clean build of everything. Compare your jar file with one that
works, see if there are any differences.
BTW: Your Spring plugin sounds interesting, what are you generating? A
DAO? Hibernate support?
Cheers
.eivind
Post by Joel HillacreMy plugin is having trouble finding it's resources in the jar file.
<code>
addConfiguredFileproducer(new FileProducer(getDestinationDir(),
"{0}SpringServiceImpl.java",
getClass().getResource("SpringServiceImpl.vm")));
</code>
However, when this code executes (built using the middlegen build.xml and
executed using a custom project build.xml), I receive a <code>template
can't be null</code> error message from the file producer constructor. I
checked my middlegen-spring-plugin-2.1.jar, and the SpringServiceImpl.vm
is sitting beside my SpringPlugin.class. What did i miss here? :s
Thank you for any help,
Joel Hillacre
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out
more http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
middlegen-user mailing list
https://lists.sourceforge.net/lists/listinfo/middlegen-user
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
middlegen-user mailing list
https://lists.sourceforge.net/lists/listinfo/middlegen-user
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
middlegen-user mailing list
https://lists.sourceforge.net/lists/listinfo/middlegen-user