cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrus Adamchik <and...@objectstyle.org>
Subject Re: Seeking to automate generation the cayenne schema
Date Mon, 10 Apr 2006 09:07:29 GMT

On Apr 8, 2006, at 10:30 PM, craig@synect.com wrote:

> Exception in thread "main" java.lang.NullPointerException
>         at
> org.objectstyle.cayenne.conf.ConfigSaver.storeDomains 
> (ConfigSaver.java:94)

It fails because it expects a ConfigSaveDelegate. Default delegate  
implementor, RuntimeSaveDelegate, in turn expects a Configuration  
instance that holds domains. In other words ConfigSaver can do all  
saving work for you if you give it a fully assembled access stack:

Configuration -> DataDomain -> DataNode.

Andrus


Mime
View raw message