Re: Cayenne POJO inheritance

2009-08-07 Thread Aristedes Maniatis
On 8/08/09 6:51 AM, Tore Halset wrote: Take a look at the examples: (the formatting of the code-examples look strange..) Hmmm... yes. This would be the Confluence upgrade. I'll see if I can fix that this weekend. Ari --> Aristedes Maniatis GPG fingerprint CBFB 84B4

Re: Cayenne POJO inheritance

2009-08-07 Thread Tore Halset
Hello. The cayenne way is like this: ObjectContext ctxt = Pessoa p = (Pessoa) ctxt.newObject(PessoaFisica.class); p.setName("Gilberto"); p.setDateOfBirth(Date.valueOf("2009-01-01")); ctxt.commitChanges(); It seem strange at the beginning, but there are lots of benefits with the context k

Re: Example of getting data from non-JDBC datasource?

2009-08-07 Thread Mike Kienenberger
No non-jdbc examples that I know of, but I'd say you needed to create your own implementation of Interface DbAdapter. http://cayenne.apache.org/doc/api/org/apache/cayenne/dba/DbAdapter.html You could use the JdbcAdaptor as an example: http://cayenne.apache.org/doc/api/org/apache/cayenne/dba/Jdb

Example of getting data from non-JDBC datasource?

2009-08-07 Thread Blake Williams
Does anyone have an example of how to get data from a non-JDBC data source, or some docs/instructions/etc. of how this can be done?

Re: Maven 2 Modeler - dependences problem

2009-08-07 Thread Andrey Razumovsky
I must have misunderstood you first. There is certainly a problem with launching modeler plugin. Adding Objectstyle repo to my pom helped for me: objectstyle Objectstyle Repository http://objectstyle.org/maven2 default