I am working on a desktop app at the moment and I have to use either h2 or
derby as DB. Now I don't know what I am doing wrong but I can't seem to be able
to delete elements from a one-to-many relations, no matter whether it is the
toOne or the toMany. I get a constraint violation error. Has
with your current usage.
El 13/01/2013 13:46, emeka okafor escribió:
Hello again,
I have been trying to simplify some parts of my code and so I figured the
following will work:
I have a many-to-many relation, say A - Base
Base has two subclasses, say Base1 andBase2 modeled using single
Hello again,
I have been trying to simplify some parts of my code and so I figured the
following will work:
I have a many-to-many relation, say A - Base
Base has two subclasses, say Base1 andBase2 modeled using single table
inheritance,
so basically:
obj-entity name=Base1 superEntityName=Base
Sorry about that.
From: Andrus Adamchik and...@objectstyle.org
To: user@cayenne.apache.org
Sent: Thursday, December 27, 2012 4:31 PM
Subject: Re: Add ActiveRecord support to Cayenne
While we all have our own approaches to programming, let's filter the
I am a little bit surprised that you call the cayenne way anemic domain
model. I do not see what is anemic in this case.
/rant
The fact that a domain object has the ability to call save() on itself or not
has nothing to do with anemism or richness. In cayenne you can and should put
your
, and dependency injection
and what not. I mean, last time I checked, Apple Itunes
was running on a technologie similar to cayenne.
From: Juan José Gil mat...@gmail.com
To: user@cayenne.apache.org; emeka okafor emeka_1...@yahoo.com
Sent: Wednesday, December 26
I am not sure exactly what it is that you are trying to achieve. You basically
want to have entities persist themselves(curRole.save())? How do you for
example want to track changes then? What is the problem with having a
dependency on cayenne interfaces? I thought that the generated code is
Coming from EOF? I think those static helper classes are missing but it is not
that bad either.
From: John Huss johnth...@gmail.com
To: user@cayenne.apache.org user@cayenne.apache.org
Sent: Tuesday, December 18, 2012 7:01 PM
Subject: Re: Add ActiveRecord
Is there such thing as select distinct in cayenne? I would like to remove
duplicate objects based on a specific column. What is the best way to do it in
cayenne?
Should I have to filter them in memory or is there another way?
Thanks
For some reason I can't seem to be able to check out cayenne-migrations:
svn co http://svn.apache.org/viewvc/cayenne/sandbox/cayenne-migrations does not
work
From: emeka okafor emeka_1...@yahoo.com
To: user@cayenne.apache.org user@cayenne.apache.org
Sent
/cayenne/sandbox/cayenne-migrations/
On Nov 26, 2012, at 10:43 PM, emeka okafor emeka_1...@yahoo.com wrote:
For some reason I can't seem to be able to check out cayenne-migrations:
svn co http://svn.apache.org/viewvc/cayenne/sandbox/cayenne-migrations does
not work
are
not automatically generated (except for the initial database) but they are
easy to write.
On Sat, Nov 24, 2012 at 10:59 AM, emeka okafor emeka_1...@yahoo.com
wrote:
Is there a cayenne way to modifying a databse table? Like a way for
cayenne to generate a migration class that can
hello,
I have two questions:
1 - What does toDependentPK means?
2 - I would like to use a column of type String as PK. What primary key
strategy should I use since I am going to set that key in my application?
Thx.
It seems toDependentPk has to do with mandatory inverse relationship.
I will keep on writing some tests.
From: emeka okafor emeka_1...@yahoo.com
To: user@cayenne.apache.org user@cayenne.apache.org
Sent: Saturday, November 24, 2012 2:52 PM
Subject: depPk
hello
Hello,
I have an entity with an attribute description of type BLOB but is
represented in java as a java.lang.String. while trying to save that entity, I
get this error:
org.h2.jdbc.jdbcsqlexception hexadecimal string with odd number of characters
Any Idea?
String - CLOB is working
String - BLOB not so much.
From: emeka okafor emeka_1...@yahoo.com
To: user@cayenne.apache.org user@cayenne.apache.org
Sent: Sunday, November 18, 2012 12:07 PM
Subject: convertHexToBytes from H2
Hello,
I have an entity
=org.apache.cayenne.access.dbsync.CreateIfNoSchemaStrategy
Any idea?
From: Michael Gentry mgen...@masslight.net
To: user@cayenne.apache.org; emeka okafor emeka_1...@yahoo.com
Sent: Saturday, November 10, 2012 2:26 PM
Subject: Re: testing with cayenne
Hi Emeka,
We've used http://h2database.com
Kienenberger mkien...@gmail.com
To: user@cayenne.apache.org; emeka okafor emeka_1...@yahoo.com
Sent: Saturday, November 10, 2012 3:36 PM
Subject: Re: createIfNoSchemaStrategy
I haven't used H2 without schemas.
Normally I work using this:
jdbc:h2:~/database.file;SCHEMA_SEARCH_PATH=schema1,schema2
a unit test.
Robert
On Nov 9, 2012, at 11/95:04 PM , emeka okafor wrote:
New cayenne user here. I am trying to use cayenne as the orm for an
application and I was wondering how you guys write your unit test? do you
test with a real database or do you have predefined mock objectcontext and
son
My cayenne file is name cayenne-domainName.xml and so I can't seem to figure
out this error:
[v.3.1B1 May 28 2012 18:42:43] Configuration resource cayenne.xml is not
found.
I don't know why he is searching for cayenne.xml instead of
cayenne-domainName.xml; I am using maven by the way.
My Fault;
I still had this line in my application:
ServerRuntime cayenneRuntime = new ServerRuntime(cayenne.xml);
Sorry.
From: emeka okafor emeka_1...@yahoo.com
To: user@cayenne.apache.org user@cayenne.apache.org
Sent: Saturday, November 10, 2012 1:11 AM
21 matches
Mail list logo