How do I give entities different names?

3 views
Skip to first unread message

Shlomi

unread,
Feb 26, 2010, 11:57:54 AM2/26/10
to jmatter
Hey,

Firstly, I am new to this framework, actually just learned about it
this morning, and already trying to code some things in it. Seems
pretty useful!

I made a class extending AbstractComplexEObject, when I run the
application, the class name appears on the side menu, with a nice
default icon. How do i change it so the title that appears in that
menu is not the class name? Tried playing with the @Entity(name =
"different name") but that didnt do it..

Any help?

10x,
Shlomi

Shlomi

unread,
Feb 26, 2010, 4:51:33 PM2/26/10
to jmatter
Ok, this one I got :)

It has to do with setting the desired name in the locale-
metadata.properties file (or any specific one for a certain locale).
also, dont forget to set the plural form of the name, and add :

public static String pluralName() { return "desiredName"; }

where the 'desiredName' is the entry in the properties file.

Thank you!

Reply all
Reply to author
Forward
0 new messages