Re: Entity name from class
Re: Entity name from class
- Subject: Re: Entity name from class
- From: Daniel Eggert <email@hidden>
- Date: Mon, 8 Aug 2005 23:33:24 +0200
Ahhh, it's all too simple! Thank you for you answers.
/Daniel
On Aug 8, 2005, at 11:23 PM, Jerry W. Walker wrote:
Hi, Daniel,
You can get the entity from the class by:
EOEntity myEntity = EOUtilities.entityForClass(EOEditingContext
ec, Class theClass);
You can get the entity name by:
myEntity.name();
Regards,
Jerry
On Aug 8, 2005, at 5:15 PM, Ken Anderson wrote:
personInstance.entityName();
On Aug 8, 2005, at 5:05 PM, Daniel Eggert wrote:
Is there any way to programatically get the entity name from a
class?
Let's say I have the class Person, and I want to construct a
EODatabaseDataSource dataSource = new EODatabaseDataSource
(ec, entityName);
How would I go about getting entityName from the Java class
Person? Do I really need to hard code entity names into my code?
/Daniel
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40anderhome.com
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40codefab.com
This email sent to email@hidden
--
__ Jerry W. Walker, Partner
C o d e F a b, LLC - "High Performance Industrial Strength
Internet Enabled Systems"
email@hidden
212 465 8484 X-102 office
212 465 9178 fax
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden