From: dchannon <dch...@bi...> - 2006-06-15 14:59:12
|
Hay eivind, Agreed, a cleanup exercise then move to toward a release. We need to focus on a few plugins. I would suggest we atleast rate the quality of the plugins so its obvious what the status of them is for the users. Cheers David. -----Original Message----- From: mid...@li... [mailto:mid...@li...] On Behalf Of ei...@ti... Sent: Thursday, 15 June 2006 8:45 PM To: mid...@li... Subject: Re: [Middlegen-devel] anybody here? Hey guys! Good to see some activity on the list :) The adapter thing has not been maintained in a while. And the Struts generating stuff using the adapter should probably be deprecated. I suggest just using Middlegen to generate the dao layer (hibernate files), not full application. Alternatively write your own plugin for view. A cleaned up release would be good! Where we remove/deprecate all the beta-stuff (adapter, struts etc.) and focus on a few working plugins? .eivindw > Sounds like your doing a good job hunting the issue down. > I am not sure how solid the adapter plugin is so your work here is > most welcome. I would be happy to commit any changes that you > determine will help fill a few holes. > > We should work toward a release - we were orginally waiting for the > EJB3.0 stuff to finalise. Then move forward. Thanks for your help. > > > -----Original Message----- > From: mid...@li... > [mailto:mid...@li...] On Behalf Of > Yudhi Widyatama > Sent: Wednesday, 14 June 2006 9:06 PM > To: mid...@li... > Subject: Re: [Middlegen-devel] anybody here? > > > Ok, I think I found out what the culprit was. > Version: latest from the CVS. > Context: I am using the adapter plugin with hibernate persistence > layer. in hibernate-findRelation.vm : line 3 > retVals.add(${persistenceObjectName}.${hbmTable.getGetterName(${relati > on > shipRole})}()); > HibernateTable's getGetterName was method invoked with a > RelationshipRole object as an argument. The problem : the > RelationshipRole is a decorated one, with origin and target table set to > decorated AdapterPlugin. The inherited getGetterName method eventualy > called the inherited getVariableName. getVariableName compares the > origin table of the RelationshipRole with 'this'. Unfortunately the call > to getOrigin uses plugin as a key, and we are in a HibernateTable here, > hibernate's plugin is used here, resulting a null because the > RelationshipRole only has entries created by the AdapterPlugin. The > method throws IllegalArgumentException because null != a HibernateTable. > I think this whole thing is caused by the new RelationshipRole > decoration stuffs. Any ideas? > > > _______________________________________________ > middlegen-devel mailing list mid...@li... > https://lists.sourceforge.net/lists/listinfo/middlegen-devel > > > > _______________________________________________ > middlegen-devel mailing list mid...@li... > https://lists.sourceforge.net/lists/listinfo/middlegen-devel > > _______________________________________________ middlegen-devel mailing list mid...@li... https://lists.sourceforge.net/lists/listinfo/middlegen-devel |