hello,
i am new to Cayenne
Anybody could help here please?
I get this type of error:
--------------------------------------------------------------------------------------------
INFO QueryLogger: +++ Connecting: SUCCESS.
INFO QueryLogger: --- transaction started.
INFO QueryLogger: Detected and installed adapter: org.objectstyle.cayenne.dba.postgres.PostgresAdapter
INFO QueryLogger: SELECT t0.is_checked, t0.password, t0.username, t0.id FROM public.account t0 - prepared in 16 ms.
INFO QueryLogger: === returned 23 rows. - took 78 ms.
Exception in thread "main" org.objectstyle.cayenne.CayenneRuntimeException: [v.1.2M11 February 13 2006] Failed to load class Account: Account
at org.objectstyle.cayenne.map.ObjEntity.getJavaClass(ObjEntity.java:267)
at org.objectstyle.cayenne.map.EntityDescriptor.compile(EntityDescriptor.java:135)
at org.objectstyle.cayenne.map.EntityDescriptorFactory.getDescriptor(EntityDescriptorFactory.java:107)
--------------------------------------------------------------------------------------------
// my code
// TestQuery is already in the map.xml. it executed also.
Configuration conf = Configuration.getSharedConfiguration();
DataDomain domain = conf.getDomain();
//Convenience method to create a new instance of DataContext based on default domain.
DataContext ec = domain.createDataContext();
SelectQuery prototype = (SelectQuery) ec.getEntityResolver().lookupQuery("TestQuery");
List objects = ec.performQuery(prototype);
--------------------------------------------------------------------------------------------
Thanks in Advacne.
Sako.
This archive was generated by hypermail 2.0.0 : Fri Mar 10 2006 - 15:22:54 EST