AW: AW: Mapping a relationship with type List

2012-06-13 Thread Schönfisch , Jörg
> -Ursprüngliche Nachricht- > Von: Aristedes Maniatis [mailto:a...@maniatis.org] > Gesendet: Mittwoch, 13. Juni 2012 09:05 > An: user@cayenne.apache.org > Betreff: Re: AW: Mapping a relationship with type List > > On 13/06/12 12:53am, Schönfisch, Jörg wrote: > &g

AW: Mapping a relationship with type List

2012-06-12 Thread Schönfisch , Jörg
. Juni 2012 15:53 An: user@cayenne.apache.org Betreff: Re: Mapping a relationship with type List On 12/06/12 7:01pm, Schönfisch, Jörg wrote: > Hi, > > I have two tables, one relates to an object entity, the other is a join > table. A FK relationship exists between those two. However the

Mapping a relationship with type List

2012-06-12 Thread Schönfisch , Jörg
Hi, I have two tables, one relates to an object entity, the other is a join table. A FK relationship exists between those two. However the "other" IDs in the join table may be present in several different tables so I cannot define a FK relationship for them. Thus I directly want to read a list

AW: Why are most flattened relationships read-only?

2012-03-23 Thread Schönfisch , Jörg
] Gesendet: Donnerstag, 22. März 2012 22:37 An: user@cayenne.apache.org Betreff: Re: Why are most flattened relationships read-only? On 23/03/12 2:40 AM, Schönfisch, Jörg wrote: > Hi everybody, > > I'm trying to create a model which uses multiple levels of inheritance. > Because of

Why are most flattened relationships read-only?

2012-03-22 Thread Schönfisch , Jörg
Hi everybody, I'm trying to create a model which uses multiple levels of inheritance. Because of this, I use many (flattened) 1:n-relationships between tables and subtables. Unfortunately, this results in read-only relationships on deeper levels of the hierarchy. Is there any possibility to est

AW: Schema generation with Ant

2012-03-16 Thread Schönfisch , Jörg
ne jars as: And you have a leading "cayenne/" in front of yours: mrg On Thu, Mar 15, 2012 at 7:37 AM, Sch

AW: Schema generation with Ant

2012-03-15 Thread Schönfisch , Jörg
more of the error message? I didn't see anything obvious, but I don't really use the Ant plugin, either. Thanks, mrg On Wed, Mar 14, 2012 at 9:38 AM, Schönfisch, Jörg wrote: > Hi everybody, > > I'm trying to generate my database schema through Ant, but I get an error an

Schema generation with Ant

2012-03-14 Thread Schönfisch , Jörg
Hi everybody, I'm trying to generate my database schema through Ant, but I get an error and I have no idea why. This is the error message in the console: Invalid class org.apache.cayenne.dba.JdbcAdapter of type org.apache.cayenne.dba.DbAdapter The same message appears if I use org.apache.caye

CreateIfNoSchema vs ThrowOnPartialOrCreate strategy

2011-11-25 Thread Schönfisch , Jörg
Hi, I wanted to change the schema update strategy in my project from CreateIfNoSchema to ThrowOnPartialOrCreate, but I noticed that the later does not create any PK or FK constraints. By looking at the code for generate(DataNode) this seems to be intende, but why? Shouldn't these strategies be