> -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of Jon > Finanger > Sent: 13. desember 2002 09:02 > To: [EMAIL PROTECTED] > Subject: RE: [Middlegen-user] cutting of my bean names > > > How is middlegen going to do this decision in a proper way?
Middlegen can do the decision in a proper way when someone writes an algorithm that knows about all ortography rules for English (and preferrably all other languages on the planet) -Or when somebody bundles a dictionary with it. -Until then, you can tell Middlegen how to pluralise and singularise particular words. Here is the link (again) to an earlier post on the same subject. In that post you'll find a link to the solution. http://sourceforge.net/mailarchive/forum.php?thread_id=1408018&forum_id=231 Aslak > Obviously it cant know that e.g. 'OrderStatus' is singularis unless it > have a dictinary of some kind. (I could of course change it to > orderstate). > Unforunately there is a lot of non-pluraris words ending with a 's'. > > I agree with Hal, reccomending the developer to not use pluraris > is better. If they don't, its their problem. Yesterday i went > through my tables and changed some of them to sigularis - but > still I have some tables ending with 's', which is not pluraris and > will never be :) > Sure, if you have the luxury. -But try to say that to the DBA of a legacy database. He'll probably just stare at you ;-) > BTW: I cant find the sources in cvs neither on sourceforge > (except for the Source XReference). > http://sourceforge.net/cvs/?group_id=36044 (middlegen module) -Or did I misunderstand what you were looking for? Aslak > -Jon > > > > > -----Original Message----- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED]]On Behalf Of Aslak > > Hellesoy > > Sent: 12. desember 2002 16:59 > > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] > > Subject: RE: [Middlegen-user] cutting of my bean names > > > > > > > > > > > -----Original Message----- > > > From: [EMAIL PROTECTED] > > > [mailto:[EMAIL PROTECTED]]On Behalf Of Hal > > > Deadman > > > Sent: 12. desember 2002 16:48 > > > To: [EMAIL PROTECTED] > > > Subject: RE: [Middlegen-user] cutting of my bean names > > > > > > > > > Isn't it generally understood to be poor naming to have > plural names for > > > database tables? Middlegen should probably give people the > benefit of the > > > > While I might agree with you, I dont't think that's the reality. I have > > never seen a legacy database without plural names in the table. > That's the > > situation, Middlegen tries to deal with it. It manages to deal > with it in > > most situations, but not all. > > > > > doubt and assume that any table names ending in S are not > plural. I can't > > > recall ever seeing a table that made it to production with a > plural name. > > > The pluralization is still important for 1-M and M-M CMR > > > relationship field > > > method names but table names should probably be left alone. > > > > > > Hal > > > > -----Original Message----- > > > > From: [EMAIL PROTECTED] > > > > [mailto:[EMAIL PROTECTED]]On > Behalf Of Aslak > > > > Hellesoy > > > > Sent: Thursday, December 12, 2002 9:19 AM > > > > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] > > > > Subject: RE: [Middlegen-user] cutting of my bean names > > > > > > > > Middlegen tries to singularise/pluralise english words. When > > > > it fails, you > > > > must tell it what to do: > > > > > > > > http://sourceforge.net/mailarchive/forum.php?thread_id=1408018 > > > > &forum_id=231 > > > > > > > > > May that be the reason of this error messag?: > > > > > I Depend On: > > > > > Depends On Me: org.jboss.deployment.DeploymentException: No > > > > > ejb-relationship-ro > > > > > le-name element found, ObjectName: > > > > > jboss.j2ee:jndiName=smartpool.Accessprofileit > > > > > emLocalHome,service=EJB > > > > > state: FAILED > > > > > I Depend On: > > > > > Depends On Me: org.jboss.deployment.DeploymentException: No > > > > > ejb-relationship-ro > > > > > le-name element found, ObjectName: > > > > > jboss.j2ee:jndiName=smartpool.Accounttransact > > > > > ionLocalHome,service=EJB > > > > > state: FAILED > > > > > > > > > > > > > I don't see how that could be related. Maybe you can get help > > > > with JBoss in > > > > JBoss' own forums? > > > > > > > > Aslak > > > > > > > > > -Jon > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > > This sf.net email is sponsored by: > > > > > With Great Power, Comes Great Responsibility > > > > > Learn to use your power at OSDN's High Performance > Computing Channel > > > > > http://hpc.devchannel.org/ > > > > > _______________________________________________ > > > > > middlegen-user mailing list > > > > > [EMAIL PROTECTED] > > > > > https://lists.sourceforge.net/lists/listinfo/middlegen-user > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > This sf.net email is sponsored by: > > > > With Great Power, Comes Great Responsibility > > > > Learn to use your power at OSDN's High Performance Computing Channel > > > > http://hpc.devchannel.org/ > > > > _______________________________________________ > > > > middlegen-user mailing list > > > > [EMAIL PROTECTED] > > > > https://lists.sourceforge.net/lists/listinfo/middlegen-user > > > > > > > > > > > > ------------------------------------------------------- > > > This sf.net email is sponsored by: > > > With Great Power, Comes Great Responsibility > > > Learn to use your power at OSDN's High Performance Computing Channel > > > http://hpc.devchannel.org/ > > > _______________________________________________ > > > middlegen-user mailing list > > > [EMAIL PROTECTED] > > > https://lists.sourceforge.net/lists/listinfo/middlegen-user > > > > > > > > ------------------------------------------------------- > > This sf.net email is sponsored by: > > With Great Power, Comes Great Responsibility > > Learn to use your power at OSDN's High Performance Computing Channel > > http://hpc.devchannel.org/ > > _______________________________________________ > > middlegen-user mailing list > > [EMAIL PROTECTED] > > https://lists.sourceforge.net/lists/listinfo/middlegen-user > > > > > > > > ------------------------------------------------------- > This sf.net email is sponsored by: > With Great Power, Comes Great Responsibility > Learn to use your power at OSDN's High Performance Computing Channel > http://hpc.devchannel.org/ > _______________________________________________ > middlegen-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/middlegen-user ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ _______________________________________________ middlegen-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/middlegen-user