Message:
A new issue has been created in JIRA.
---------------------------------------------------------------------
View the issue:
http://objectstyle.org/jira/secure/ViewIssue.jspa?key=CAY-195
Here is an overview of the issue:
---------------------------------------------------------------------
Key: CAY-195
Summary: Add method to CayenneDataObject to return it's ObjEntity
Type: New Feature
Status: Assigned
Priority: Trivial
Project: Cayenne
Components:
Cayenne Core Library
Assignee: Andrus Adamchik
Reporter: Michael Gentry
Created: Thu, 23 Sep 2004 10:45 AM
Updated: Thu, 23 Sep 2004 10:45 AM
Description:
It would be nice -- if you need to get an object's entity -- to be able to ask it directly for the information, but that is currently missing. You have to do an "ugly" work around. An example implementation of this feature is:
class CayenneDataObject
{
...
public ObjEntity getObjectEntity()
{
if (getDataContext() != null)
return getDataContext().getEntityResolver().lookupObjEntity(this);
else
return null;
}
...
}
Of course, you could call it getObjEntity so the naming is more consistent with the currently abbreviated class name and possibly throw an exception instead of returning null.
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://objectstyle.org/jira/secure/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
This archive was generated by hypermail 2.0.0 : Thu Sep 23 2004 - 10:47:48 EDT