Re: Request for help with new adapter/struts/hibernate
Andreas Kemkes <[email protected]>
| Newsgroups | gmane.comp.java.ejb.middlegen.user |
|---|---|
| Message-ID | <[email protected]> |
Eivind:
I haven't gotton around to analyze it in detail, but the generated code
looks much better, i.e. the #parse issue is gone. In fact the only thing
I noticed was the following dependency on the airline example in the
*Delegate.java code:
net.sf.hibernate.SessionFactory factory =
(net.sf.hibernate.SessionFactory)ctx.lookup("AirlineHibernateFactory");
I know it's work in progress, but I thought you may want to know.
Also, in delegate.vm, there is the following definition of useVO:
#set( $useVO = $plugin.voPrefix && $plugin.voSuffix )
Wouldn't it be sufficient to use || instead of && and relax the
requirement to specify both voPrefix and voSuffix to either of them.
I'm not familiar with JIRA yet. I'll try to look into it and will
report further comments there.
Thanks for getting me on the right track.
Regards,
Andreas
Eivind Waaler wrote:
>Ah, I think I know what it is. The adapter plugin also needs some changes
>to the main middlegen class files:
>
>http://jira.codehaus.org/secure/ViewIssue.jspa?key=MIDDLEGEN-11
>
>If you build middlegen with all plugins from cvs it should work, as you
>suggested :-)
>
>If you find problems or have suggestions/changes I would appreciate if you
>logged them in our jira bug tracker:
>
>http://jira.codehaus.org/secure/BrowseProject.jspa?id=10110
>
>.eivind
>
>On Tue, 2 Mar 2004, Andreas Kemkes wrote:
>
>
>
>>Eivind:
>>
>>It'll definitely be useful :-). Thanks for the work In the meantime a
>>quick test with the airline example didn't show any different results,
>>still the #parse substitution issue.
>>
>>Maybe I need to start over with the full cvs version. I only compiled
>>the adapter and struts plugin from cvs and replaced the libraries in the
>>last distribution. Maybe that's what causes the problem, even though it
>>doesn't make sense to me.
>>
>>Also, I made a separate test with velocity and the #parse substitution
>>appears to work.
>>
>>Looks like a rather trivial problem, once it's tracked down ;-).
>>
>>Andreas
>>
>>Eivind Waaler wrote:
>>
>>
>>
>>>On Mon, 1 Mar 2004, Andreas Kemkes wrote:
>>>
>>>
>>>
>>>
>>>
>>>>Eivind:
>>>>
>>>>Eivind Waaler wrote:
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>>Hi Andreas,
>>>>>
>>>>>The adapter plugin for hibernate is still under development and not quite
>>>>>ready for use unfortunately. Classes with composite keys and other basic
>>>>>stuff is not yet in place.
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>I do understand that it is work in progress. It was just too tempting
>>>>to see that something is in progress to decouple struts and cmp20. And
>>>>there aren't any composite keys in my model right now.
>>>>
>>>>
>>>>
>>>>
>>>It's nice to see that there's interest in this work :-) When running it on
>>>the three sample tables (flight, person, reservation) i only get an error
>>>on the StrutsReservationDelegate because of the composite key. Have you
>>>tried this? Just to check if it's related to your setup or the tables
>>>you're using.
>>>
>>>
>>>
>>>
>>>
>>>>I've looked a bit deeper and it seems that velocity's #parse directive
>>>>appears ineffective. This is supposed to work, isn't it. I'm using a
>>>>velocity 1.4 jar file. Any ideas what could be the cause?
>>>>
>>>>
>>>>
>>>>
>>>It is supposed to work, but I haven't had time to test it through very
>>>well yet. Not sure what could cause your problem. Let me know if you
>>>figure out anything or do any more development on this, I'd be happy to
>>>update the cvs. The goal is to get a first version of this up and running
>>>asap, seems to be something people might be finding useful.
>>>
>>>Cheers
>>>.eivind
>>>
>>>
>>>
>>>
>>>
>>>>Thanks,
>>>>
>>>>Andreas
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>>Not sure about your xdoclet error. Try searching the xdoclet
>>>>>lists/documentation for similar errors.
>>>>>
>>>>>Regards
>>>>>.eivind
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>-------------------------------------------------------
>>>>SF.Net is sponsored by: Speed Start Your Linux Apps Now.
>>>>Build and deploy apps & Web services for Linux with
>>>>a free DVD software kit from IBM. Click Now!
>>>>http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
>>>>_______________________________________________
>>>>middlegen-user mailing list
>>>>[email protected]
>>>>https://lists.sourceforge.net/lists/listinfo/middlegen-user
>>>>
>>>>
>>>>
>>>>
>>>>
>>>-------------------------------------------------------
>>>SF.Net is sponsored by: Speed Start Your Linux Apps Now.
>>>Build and deploy apps & Web services for Linux with
>>>a free DVD software kit from IBM. Click Now!
>>>http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
>>>_______________________________________________
>>>middlegen-user mailing list
>>>[email protected]
>>>https://lists.sourceforge.net/lists/listinfo/middlegen-user
>>>
>>>
>>>
>>>
>>>
>
>
>-------------------------------------------------------
>SF.Net is sponsored by: Speed Start Your Linux Apps Now.
>Build and deploy apps & Web services for Linux with
>a free DVD software kit from IBM. Click Now!
>http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
>_______________________________________________
>middlegen-user mailing list
>[email protected]
>https://lists.sourceforge.net/lists/listinfo/middlegen-user
>
>
>