Re: Table case in CreateIfNoSchemaStrategy causes problems [3.1M4-SNAPSHOT]

2011-12-15 Thread Kevin Meyer - KMZ
ote: > Hi Kevin, > > I'm not familiar offhand with the case sensitivity of HSQLDB, but a > JIRA would be nice so we can remember to explore it later. > > Thanks, > > mrg > > > On Wed, Dec 14, 2011 at 12:31 AM, Kevin Meyer - KMZ wrote: > > In CreateIf

Table case in CreateIfNoSchemaStrategy causes problems [3.1M4-SNAPSHOT]

2011-12-13 Thread Kevin Meyer - KMZ
In CreateIfNoSchemaStrategy, I have run into problems with HSQLDB and upper/mixed case table names. In particular, if I lower or mixed case my DBEntity name, the resulting tables are not found by CreateIfNoSchemaStrategy whenI use HSQLDB. I found that if I convert all table name checks to uppe

Support for Cayenne almost in Isis

2011-12-13 Thread Kevin Meyer - KMZ
Just a quick note. I'm almost done with implementing support for Cayenne[1] as a data object store in Isis[2]. I'll not support extra Isis Objectstore query methods, rather I'll expose the Cayenne query interface as a service. Additionlly, I'll not support ant datatypes other than those nativ

Re: Is it possible/easy to integrate cayenne with other frameworks?

2011-12-12 Thread Kevin Meyer - KMZ
Enough for tonight. Thanks to everyone for the help thus far. When I get back to this project, I'll be looking into starting/ending transactions and getting IDs before the object is persisted. Regards, Kevin > Hah! Success! > > It seemed that I did not have a primary key field defined. I defi

Re: Is it possible/easy to integrate cayenne with other frameworks?

2011-12-12 Thread Kevin Meyer - KMZ
must I implement my own? Regards, Kevin On 12 Dec 2011 at 20:21, Kevin Meyer - KMZ wrote: > Ah! Next problem. > > Having found the datanode with: > DataDomain dataDomain = > runtime.getInjector().getInstance(DataDomain.class); > DataNode dataNode = dataDomain

Re: Is it possible/easy to integrate cayenne with other frameworks?

2011-12-12 Thread Kevin Meyer - KMZ
eplaced on commit: " Any hints? On 12 Dec 2011 at 12:02, Mike Kienenberger wrote: > How are you creating a DataNode and what are you doing to assign DataMaps to > it? > > On Mon, Dec 12, 2011 at 11:52 AM, Kevin Meyer - KMZ wrote: > > Ok, thanks, I call > >      

Re: Is it possible/easy to integrate cayenne with other frameworks?

2011-12-12 Thread Kevin Meyer - KMZ
ike Kienenberger wrote: > How are you creating a DataNode and what are you doing to assign DataMaps to > it? > > On Mon, Dec 12, 2011 at 11:52 AM, Kevin Meyer - KMZ wrote: > > Ok, thanks, I call > >            objAttribute.setDbAttributePath(id); > >

Re: Is it possible/easy to integrate cayenne with other frameworks?

2011-12-12 Thread Kevin Meyer - KMZ
n a DbAttribute name. > objAttribute.setDbAttributePath(id); > > On Mon, Dec 12, 2011 at 11:10 AM, Kevin Meyer - KMZ wrote: > > Sorry, you guys are confusing me. > > > > I have a datamap (called "isis_map"), to which I have added a DbEntity > > (named after my class, &

Re: Is it possible/easy to integrate cayenne with other frameworks?

2011-12-12 Thread Kevin Meyer - KMZ
name, both the > entities and the attributes. > > On Mon, Dec 12, 2011 at 9:03 AM, Mike Kienenberger wrote: > > > I can't remember the exact details, but you might need (prefix + "." + > > id) instead of (id) > > > > On Mon, Dec 12,

Re: Is it possible/easy to integrate cayenne with other frameworks?

2011-12-11 Thread Kevin Meyer - KMZ
Hmm.. curiouser and curiouser: I'm reorganising the entity setup, and now I get: org.apache.cayenne.CayenneRuntimeException: [v.3.1M4-SNAPSHOT Dec 11 2011 10:30:28] ObjAttribute 'number' does not have a corresponding DbAttribute My setup, below, links the two: id, in this case, is the magic "num

Re: Is it possible/easy to integrate cayenne with other frameworks?

2011-12-11 Thread Kevin Meyer - KMZ
What am I missing: In DataDomainInsertBucket#createPermIds the returned node is null in: DataNode node = parent.getDomain().lookupDataNode(entity.getDataMap()); Clearly I'm not doing something in my set-up. On 11 Dec 2011 at 21:05, Andrus Adamchik wrote: > Great to hear there a

Re: Is it possible/easy to integrate cayenne with other frameworks?

2011-12-11 Thread Kevin Meyer - KMZ
On 11 Dec 2011 at 20:28, Andrus Adamchik wrote: > > On Dec 11, 2011, at 7:00 PM, Kevin Meyer - KMZ wrote: > > > I wish it were this simple. But the problem lies in > > DataContext#newObject(String entityName) > > once it has created an instance of m

Re: Is it possible/easy to integrate cayenne with other frameworks?

2011-12-11 Thread Kevin Meyer - KMZ
By the way, I'm using Cayenne 3.1M4-SNAPSHOT. > I don't really know what you're doing, but what about something like this: > > class POJO { > CayenneDataObject delegate; > > public POJO() { > } > > public setDelegate(CayenneDataObject cdo) { > this.delegate = cdo; >

Re: Is it possible/easy to integrate cayenne with other frameworks?

2011-12-11 Thread Kevin Meyer - KMZ
Thanks - I've got to the point where Cayenne is trying to instantiate an instance of one of my pojos, but I've run into a problem... Cayenne *requires* the pojo to implement the Persisted interface, but this interface kills the Isis introspector (it detects the XMLSerializer, which contains a

Re: Is it possible/easy to integrate cayenne with other frameworks?

2011-12-10 Thread Kevin Meyer - KMZ
On 8 Dec 2011 at 16:18, Andrus Adamchik wrote: > > In the custom module define DataDomain loading services to > reverse-engineer the POJOs instead of loading mapping from XML. This > is the biggest task, requiring some understanding of Cayenne APIs. > Feel free to ask here if you get stuck with a

Re: Is it possible/easy to integrate cayenne with other frameworks?

2011-12-09 Thread Kevin Meyer - KMZ
Indeed - The Isis SQL objectstore itself works by making assumptions about jdbc type, etc. The defaults can be altered at runtime, but most work out-of-the-box against MySQL, PostgreSQL and HSQLDB. On 8 Dec 2011 at 9:10, John Huss wrote: > > I was hoping that I could merely require that Cayenn

Re: Is it possible/easy to integrate cayenne with other frameworks?

2011-12-09 Thread Kevin Meyer - KMZ
Hi Andrus, Thanks for the details. I had an initial read through of the cayenne-guide-08302011.pdf, but I'm not sure what I'm looking for. For the most part, I *do* assume that I have total control over the DB, with no legacy support. Or at least, nothing beyond choosing property names to sui

Re: Is it possible/easy to integrate cayenne with other frameworks?

2011-12-07 Thread Kevin Meyer - KMZ
Dear John, Thanks for your response. On 6 Dec 2011 at 9:04, John Huss wrote: > You can use Cayenne without running the modeler, but it would be rather > cumbersome since you would have to create the whole model programmatically > at runtime each time. So Cayenne does not introspect the POJOs?

Is it possible/easy to integrate cayenne with other frameworks?

2011-12-05 Thread Kevin Meyer - KMZ
Hi all, Please point me to the previous message if this has already been addressed.. I did a quick search, but couldn't find anything that looked directly relevant. Anyway: I have been maintaining the SQL Objectstore (jdbc) for Apache Isis (currently in the incubator), and would like to know i