Re: Problem with inheritance

2011-12-20 Thread Mathias Clerc
to automatically create your schema for your test. > > mrg > > > On Tue, Dec 13, 2011 at 2:47 AM, Mathias Clerc wrote: >> 2011/12/13 Mathias Clerc : >>> Hi Michael, >>> >>> Hello >>> >>> Actually I am trying to use Cayenne vertica

Re: Deadlock with Derby and CreateIfNoSchemaStrategy

2011-12-20 Thread Mathias Clerc
Tables(true); >            gen.setShouldDropTables(false); >            gen.setShouldCreateFKConstraints(true); >            gen.setShouldCreatePKSupport(true); >            gen.setShouldDropPKSupport(false); >            try { >                gen.runGenerator(dataNode.getDataSource()); &

Re: Problem with inheritance

2011-12-12 Thread Mathias Clerc
2011/12/13 Mathias Clerc : > Hi Michael, > > Hello > > Actually I am trying to use Cayenne vertical inheritance. Some more > details on what I did : > > I have followed the guide here : > http://cayenne.apache.org/doc30/modeling-vertical-inheritance.html > and wi

Re: Problem with inheritance

2011-12-12 Thread Mathias Clerc
ake working with multiple related > tables easier (such as adding getters/setters in your subclass to > reference the parent), but you cannot currently model this behavior > automatically. > > mrg > > > On Fri, Dec 9, 2011 at 3:00 AM, Mathias Clerc wrote: >> Hello, >>

Re: Deadlock with Derby and CreateIfNoSchemaStrategy

2011-12-11 Thread Mathias Clerc
en the app is frozen to see what the app is doing >> at this moment. IIRC we had people using CreateIfNoSchemaStrategy with >> Derby, so there may be a special case causing this condition. >> >> Andrus >> >> On Dec 8, 2011, at 10:04 PM, Mathias Clerc wrot

Deadlock with Derby and CreateIfNoSchemaStrategy

2011-12-09 Thread Mathias Clerc
I am using an embedded Derby DB together with Cayenne CreateIfNoSchemaStrategy feature. If I start with an empty DB, on the first query the DB is created but at the moment of actually running the query, Derby freezes waiting for a lock. If I use JDBC to manually create the table before the first c

Problem with inheritance

2011-12-09 Thread Mathias Clerc
Hello, It seems like I have missed something in inheritance in Cayenne. I have one main table called "Element" with fields id (PK), name and description Another table "File" inherits from "Element" with fields ID(PK, FK on Element.id) and path. When I do a context.performIteratedQuery(new Select

Re: Context question

2010-10-15 Thread Mathias Clerc
2010/10/15 Andrey Razumovsky : > SelectQuery is actually a query to database, so viewing not-yet-inserted > objects with it is not possible. See recent discussion: > http://cayenne.markmail.org/search/%20list:org.apache.cayenne.user#query:%20list%3Aorg.apache.cayenne.user+page:2+mid:6bwqse4t4czj73z

Context question

2010-10-14 Thread Mathias Clerc
Hello, I am making an evaluation of Cayenne and other frameworks. One of my test is the following : begin a set of operations make a select * on one table insert new element in that table make another select * on that table (see that new element along with the previous results) rollback make ano