cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From james yong <i_yon...@yahoo.com.sg>
Subject Register object in multiple dataMaps environment
Date Thu, 13 Dec 2007 16:32:00 GMT

Hi,

I am using cayenne-server-3.0M1. In my application, there is multiple
dataMaps for a dataDomain.
How can I register an object?

I tried

CmsText cmsText = new CmsText();
context.registerNewObject(cmsText);

But it gives the following exception:

java.lang.IllegalArgumentException: Can't find ObjEntity for DataObject
class: com.foo.window.text.model.CmsText, class is likely not mapped.
	at
org.apache.cayenne.access.DataContext.registerNewObject(DataContext.java:810)


Regards,
James
-- 
View this message in context: http://www.nabble.com/Register-object-in-multiple-dataMaps-environment-tp14319433p14319433.html
Sent from the Cayenne - User mailing list archive at Nabble.com.


Mime
View raw message