Re: lazy loading (slightly OT but still pretty important)

2012-04-10 Thread Sheldon
Hi Andrew, can I do this programmatically (without using SQL's)? Sheldon -- View this message in context: http://cayenne.195.n3.nabble.com/lazy-loading-tp3863908p3899950.html Sent from the Cayenne - User mailing list archive at Nabble.com.

Re: lazy loading (slightly OT but still pretty important)

2012-04-02 Thread Sheldon
What I mean is, if I have a Table with n columns (col1, col2, col3 ...) and want load only the value of col1 and col3 (without loading col2 and the others). Is this example possible? Sheldon -- View this message in context: http://cayenne.195.n3.nabble.com/lazy-loading-tp3863908p3877037

Re: select over PKs

2012-04-02 Thread Sheldon
If I specify a pageSize than I get any PK of objects. I want, that I know a list of PKs and get their Objects. Sheldon -- View this message in context: http://cayenne.195.n3.nabble.com/select-over-PKs-tp3870305p3876993.html Sent from the Cayenne - User mailing list archive at Nabble.com.

Re: select over PKs

2012-03-30 Thread Sheldon
Hello Michael, I want to use a SelectQuery (but without using of a String "select ...") Thanks Sheldon -- View this message in context: http://cayenne.195.n3.nabble.com/select-over-PKs-tp3870305p3871032.html Sent from the Cayenne - User mailing list archive at Nabble.com.

Re: select over PKs

2012-03-30 Thread Sheldon
Yes I mean primary key. For example I have a list of primary keys (that should not be random list keys) and I want to fetch the related objects of these keys. Is this possible? Sheldon -- View this message in context: http://cayenne.195.n3.nabble.com/select-over-PKs-tp3870305p3870799.html Sent

Re: Best Practice Question

2012-03-30 Thread Sheldon
What I mean is, if I have a Table with n columns (col1, col2, col3 ...) and want load only the value ov col1 and col3 (without loading col2 and the others). Is this example possible? Sheldon -- View this message in context: http://cayenne.195.n3.nabble.com/lazy-loading-tp3863908p3870794.html

select over PKs

2012-03-30 Thread Sheldon
Hello, can I fetch data from db with a list of private keys? One possibility is to do this with SQLTemplate and than create a SELECT statement. But I want to do this like: Cayenne.objectForPK(context, Class, List of PKs) Sheldon -- View this message in context: http://cayenne.195.n3.nabble.com

lazy loading

2012-03-28 Thread Sheldon
Hello, is lazy loading not supported in cayenne? best regards Sheldon -- View this message in context: http://cayenne.195.n3.nabble.com/lazy-loading-tp3863908p3863908.html Sent from the Cayenne - User mailing list archive at Nabble.com.

Re: Myslq-Adapter

2012-03-15 Thread Sheldon
Thank you Andrus, I don't found this instruction. Sheldon -- View this message in context: http://cayenne.195.n3.nabble.com/Myslq-Adapter-tp3828735p3829244.html Sent from the Cayenne - User mailing list archive at Nabble.com.

Re: Myslq-Adapter

2012-03-15 Thread Sheldon
Sorry Andrus, but I don't really understand DI and I don't found good explanations of it. Can you give me some advice or good links? thanks Sheldon -- View this message in context: http://cayenne.195.n3.nabble.com/Myslq-Adapter-tp3828735p3829085.html Sent from the Cayenne - User ma

Re: Myslq-Adapter

2012-03-15 Thread Sheldon
You are right Andrus, the JdbcEventLogger of the adapter is null. How can I initialize the Logger? Sheldon -- View this message in context: http://cayenne.195.n3.nabble.com/Myslq-Adapter-tp3828735p3828969.html Sent from the Cayenne - User mailing list archive at Nabble.com.

Myslq-Adapter

2012-03-15 Thread Sheldon
Hello, how can I create a custom Mysql adapter? I use cayenne 3.1M3. I've tried: 1) DataNode node = new DataNode(...); dataNode.setAdapter(new MySQLAdapter()); 2) Provider adapterProvider = new Provider() { public DbAdapter get() throws ConfigurationException {

Re: run no_xml_example

2012-03-14 Thread Sheldon
Yes, I think I should do it on my own. Now I configure Cayenne like in the post: http://cayenne.195.n3.nabble.com/How-to-configure-Cayenne-and-map-generic-object-programmatically-from-scratch-without-using-of-XML-td3506305.html. I don't understand where and how to implement DataSourceFactory and

run no_xml_example

2012-03-13 Thread Sheldon
Hello, I want to run the no_xml_example of A.Rothe: https://cwiki.apache.org/CAY/no-xml-example.html. But I get the following Exceptions: org.apache.cayenne.CayenneRuntimeException: [v.3.1M3 Sep 13 2011 19:17:16] Commit Exception at org.apache.cayenne.access.DataContext.flushToParent(Da