ToManyList cannot be instantiated with a list.getClass().newInstance()

2012-07-11 Thread Tomas Stenlund
Hi, I'm using Cayenne 3.1B1 and Pivot 2.0.2 as a GUI and have come across something which I would gladly have some good suggestions around. The automatically generated getters for the relationships sometimes returns a ToManyList of objects. To be able to use that list directly in Pivot:s wid

Re: Some more concrete questions about Cayenne

2012-01-18 Thread Tomas Stenlund
On 01/18/2012 04:33 PM, Durchholz, Joachim wrote: Well I just do that, answer a few of the questions: ... 2) How would one assign a "field type" with a field in a Cayenne Pojo? With "field type", I mean things like 123456789012345678901234567890123456789012345678901234567890123456789012 - Ass

Re: CreateIfNoSchema vs ThrowOnPartialOrCreate strategy

2011-11-25 Thread Tomas Stenlund
Hi Jörg, I have had exactly the same reflection and I think I have seen different versions of the same schema strategy where the behaviour have been changed between version (setShouldCreateFKConstrants, etc. from false to true or the other way around). I actually though it was intended so I

Re: Handling dialog ENTER and ESC

2011-09-25 Thread Tomas Stenlund
Oh, I'm terribly sorry. I posted this in the wrong userlist - pressed the wrong button. I meant it to go to pivot not cayenne. But I must say, it is a good combo (cayenne and pivot). Sorry guys - I'm embarrassed, Tomas On 09/25/2011 10:42 AM, Tomas Stenlund wrote: Hi, I'm

Handling dialog ENTER and ESC

2011-09-25 Thread Tomas Stenlund
Hi, I'm after a design/code pattern for handling ENTER and ESC for dialogs (modal) as well as PushButtons performing the same function. When I press ENTER or ESC the dialog is closed and I can find out in the DialogStateListener which one was pressed (true,false) which I guess is the default

Re: CreateIfNoSchemaStrategy not as I expected

2010-12-28 Thread Tomas Stenlund
Cпасибо :-) Thanks for the effort, Tomas On 12/28/2010 11:25 AM, Ольга Ткачева wrote: I'll watch this bug in next few days 2010/12/28 Tomas Stenlund: Thanks Andrus, I will have to learn to look through the bug-reports before I post something. I'll just revert back to no schema

Re: CreateIfNoSchemaStrategy not as I expected

2010-12-28 Thread Tomas Stenlund
ug: https://issues.apache.org/jira/browse/CAY-1506 Will need to fix it ASAP. Andrus On Dec 28, 2010, at 10:50 AM, Tomas Stenlund wrote: Hmm, sorry to bother you guys again, even though that worked it seems that cayenne now generates the following queries: SELECT "t0"."fkid_co

Re: CreateIfNoSchemaStrategy not as I expected

2010-12-28 Thread Tomas Stenlund
quot;t0" WHERE t0.fkid_competition = ? [bind: 1->fkid_competition:200] - prepared in 38 ms. Which fails due to the column in the WHERE clause not to be "quoted" when doing "relationship-query" on the entity. Cheers, Tomas On 12/27/2010 10:36 PM, Michael Gentry wrot

Re: CreateIfNoSchemaStrategy not as I expected

2010-12-27 Thread Tomas Stenlund
Hi Michael, sneaky thing. That did it :-) Never though about that one ... Thanks, Tomas On 12/27/2010 10:23 PM, Michael Gentry wrote: Hi Tomas, What happens if you turn on "Quote SQL Identifiers" under your DataMap? mrg On Mon, Dec 27, 2010 at 4:00 PM, Tomas Stenlund wrote:

Re: CreateIfNoSchemaStrategy not as I expected

2010-12-27 Thread Tomas Stenlund
ndrus Adamchik wrote: So far CreateIfNoSchemaStrategy worked pretty reliably for me. So very odd.. Could you please open a bug report in Jira. We may take a look. (Please also specify version of Derby). Andrus On Dec 26, 2010, at 10:43 PM, Tomas Stenlund wrote: Hi, I'm using Cayenne 3.0 with D

CreateIfNoSchemaStrategy not as I expected

2010-12-26 Thread Tomas Stenlund
Hi, I'm using Cayenne 3.0 with Derby as an embedded database and with -Dderby.system.home=/home/tomas/xc/data and I have also selected CreateIfNoSchemaStrategy as my strategy. I was expecting the database to be created on first access (which also happens), but the second run it still says no

Re: Exception in Cayenne Modeler, heap blows up

2010-10-06 Thread Tomas Stenlund
Well, it works for me now after the patch (3.1). But then again I think Andrei used my mapping to find the bug, so it might be better if Gilberto tried it also. Cheers, Tomas 2010-10-04 19:32, Andrus Adamchik skrev: Hi Gilberto, Just committed Andrei's patch for CAY-1488. If you are feeli

Re: Exception in Cayenne Modeler, heap blows up

2010-09-24 Thread Tomas Stenlund
"Deny" db-relationship-path="allSprintTemplates"/> target="PositionTemplateObjEntity" deleteRule="Deny" db-relationship-path="allPositions"/> source="HeatTemplateObjEntity" target="SprintTemplateObjEntity" deleteRule="

Re: Exception in Cayenne Modeler, heap blows up

2010-09-24 Thread Tomas Stenlund
Hi again, thanks for the help. I run on Ubuntu Lucid Lynx, and tried java -Xmx512m -jar CayenneModeler.jar but with the same result. It just took a while longer for the heap to fill up. The stacktrace also shows a different position. Anyway, this happens when I add an additional relationship

Exception in Cayenne Modeler, heap blows up

2010-09-23 Thread Tomas Stenlund
Hi, I'm modelling a series of database and objectentities and when I add one of the relations and try to synch it, it asks if I want to remove foreign keys mapped as object attributes, and I say yes and the CPU goes into a spin and the heap blows up see stacktrace at end. If I do the same ag

Re: Cayenne 3.0 and DataViews/DVModeler

2010-08-21 Thread Tomas Stenlund
r.xml is never touched. Cheers, Tomas 2010-08-21 13:37, Tomas Stenlund skrev: Hi, thanks for your quick replies. Yes I understand what you are saying. So I think for the time being I will make the sourcecode changes in my local sourcefiles to handle the namespace for dvmodeler so it can read

Re: Cayenne 3.0 and DataViews/DVModeler

2010-08-21 Thread Tomas Stenlund
that we'll be happy to revive the DV project if we find a dedicated volunteer to support it. I guess if that happens, my main request would be to keep the DV stuff decoupled from Cayenne runtime and cayenne.xml file. Cheers, Andrus On Aug 21, 2010, at 2:12 PM, Tomas Stenlund wrote: O

Re: Cayenne 3.0 and DataViews/DVModeler

2010-08-21 Thread Tomas Stenlund
Ooops, I'm sorry I did not search the mailing list thoroughly, there is already a posting related to the dataviews getting thrown out of the cayenne.xml. So that one is known. Cheers, Tomas 2010-08-21 12:39, Tomas Stenlund skrev: Hi, as I have understood the dataviews and dvmodele

Cayenne 3.0 and DataViews/DVModeler

2010-08-21 Thread Tomas Stenlund
Hi, as I have understood the dataviews and dvmodeler has been cut out of th cayenne project and is no longer maintained. Nevertheless I have kind of fallen in love with cayenne during my evaluation of it and also would like to have a look at dataviews and dvmodeler to see if it fits my needs.