Discussion:
AW: [Middlegen-user] cutting of my bean names
Meyer-Willner, Bernhard
2002-12-13 11:40:02 UTC
Permalink
I love your nordic humor, Aslak. Keep up the great work :)

Once I also had a problem with that naming scheme and posted some comments
about it, but I think most everybody could live with the simple scheme
Middlegen applies by default.

Bernhard

-----Ursprüngliche Nachricht-----
Von: Aslak Hellesoy [mailto:***@netcom.no]
Gesendet: Freitag, 13. Dezember 2002 14:12
An: ***@online.no; middlegen-***@lists.sourceforge.net
Betreff: RE: [Middlegen-user] cutting of my bean names
-----Original Message-----
Finanger
Sent: 13. desember 2002 09:02
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-----
Hellesoy
Sent: 12. desember 2002 16:59
Subject: RE: [Middlegen-user] cutting of my bean names
-----Original Message-----
Deadman
Sent: 12. desember 2002 16:48
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-----
Behalf Of Aslak
Hellesoy
Sent: Thursday, December 12, 2002 9:19 AM
Subject: RE: [Middlegen-user] cutting of my bean names
Middlegen tries to singularise/pluralise english words. When
it fails, you
http://sourceforge.net/mailarchive/forum.php?thread_id=1408018
&forum_id=231
Depends On Me: org.jboss.deployment.DeploymentException: No
ejb-relationship-ro
jboss.j2ee:jndiName=smartpool.Accessprofileit
emLocalHome,service=EJB
state: FAILED
Depends On Me: org.jboss.deployment.DeploymentException: No
ejb-relationship-ro
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
-------------------------------------------------------
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
https://lists.sourceforge.net/lists/listinfo/middlegen-user
-------------------------------------------------------
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
https://lists.sourceforge.net/lists/listinfo/middlegen-user
-------------------------------------------------------
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
https://lists.sourceforge.net/lists/listinfo/middlegen-user
-------------------------------------------------------
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
https://lists.sourceforge.net/lists/listinfo/middlegen-user
-------------------------------------------------------
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
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
middlegen-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/middlegen-user

This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.
Loading...