Re: lifecycle callbacks and ROP

2007-03-09 Thread Aristedes Maniatis
On 10/03/2007, at 10:13 AM, Tore Halset wrote: Hello. I am a lifecycle callbacks newbie trying to understand http:// cwiki.apache.org/CAYDOC/lifecycle-callbacks.html in a ROP context. Can the callback methods be defined in the client PersistentObject or only in the server CayenneDataObjec

lifecycle callbacks and ROP

2007-03-09 Thread Tore Halset
Hello. I am a lifecycle callbacks newbie trying to understand http:// cwiki.apache.org/CAYDOC/lifecycle-callbacks.html in a ROP context. Can the callback methods be defined in the client PersistentObject or only in the server CayenneDataObject? Can a ROP client perform non-lifecycle callba

Re: AW: Store BitSet

2007-03-09 Thread Peter Karich
Hi, Peter Schröder! > you may use > http://java.sun.com/j2se/1.4.2/docs/api/java/io/ObjectOutputStream.html > to serialize any given object. but i guess thats not what you want. Ah thank you! with the addition of ByteArrayOutputStream it is very easy: //writing: ByteArrayOutputStream baos = new

Re: Store BitSet

2007-03-09 Thread Tore Halset
Hello Peter. On Mar 8, 2007, at 23:39, Peter Karich wrote: I want to store (and read) a BitSet into (from) the database. The long[] array is private and I don't want to hack it by using reflection or even store this as String with toString :-) It depend on how you want to store it in the data

Re: create a fault like EOF?

2007-03-09 Thread Andrus Adamchik
On Mar 9, 2007, at 5:43 PM, Arturo Perez wrote: How does one go about making a fault the way that EOF does? tia, arturo Here is one way: ObjectId id = new ObjectId("Artist", Artist.ARTIST_ID_PK_COLUMN, 55); Artist fault = context.localObject(id); Andrus

create a fault like EOF?

2007-03-09 Thread Arturo Perez
How does one go about making a fault the way that EOF does? tia, arturo

Re: Importing an EOModel with single table inheritance

2007-03-09 Thread Simon McLean
Thanks Andrus. I'm downloading it now. If only apple would respond to radar's about eomodeler as quick as that...!! Simon On 9 Mar 2007, at 12:46, Andrus Adamchik wrote: Fixed - check out the snapshot build of 2.0 that I posted here: http://people.apache.org/~aadamchik/nightly/0309200

Re: Importing an EOModel with single table inheritance

2007-03-09 Thread Andrus Adamchik
Fixed - check out the snapshot build of 2.0 that I posted here: http://people.apache.org/~aadamchik/nightly/03092007/ Andrus On Mar 5, 2007, at 2:10 PM, Simon McLean wrote: Hi Andrus - It's on there: CAY-764 Simon On 5 Mar 2007, at 11:15, Andrus Adamchik wrote: Hi Simon, Looking at t

Re: Datanode -> XML

2007-03-09 Thread Adrian Wiesmann
> I did look at that, but it designed as a schema export/import tool, > not a data import/export tool. Yes, it has some similar > functionality, but it is really very primitive. Has anyone done > anything like this into XML or a set of SQL statements? I did something like that with Cayenne f

Re: Datanode -> XML

2007-03-09 Thread Ahmed Mohombe
I am looking at a way to export and import data from a Derby database. Take a look at DDLUtils: http://db.apache.org/ddlutils/ Even if not perfect, from all the solutions, it seems so far to be the best inter- and intra- DB data migration tool. Ahmed. I did look at that, but it designed as

Re: Datanode -> XML

2007-03-09 Thread Aristedes Maniatis
On 09/03/2007, at 9:29 PM, Ahmed Mohombe wrote: I am looking at a way to export and import data from a Derby database. Take a look at DDLUtils: http://db.apache.org/ddlutils/ Even if not perfect, from all the solutions, it seems so far to be the best inter- and intra- DB data migration to

AW: Datanode -> XML

2007-03-09 Thread Peter Schröder
hi, as for your testing-idea. i think there is a test-library for xml-data driven testing, but i cannot remember the name... -Ursprüngliche Nachricht- Von: Aristedes Maniatis [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 9. März 2007 11:25 An: [EMAIL PROTECTED] Betreff: Datanode -> XML

Re: Datanode -> XML

2007-03-09 Thread Ahmed Mohombe
I am looking at a way to export and import data from a Derby database. Take a look at DDLUtils: http://db.apache.org/ddlutils/ Even if not perfect, from all the solutions, it seems so far to be the best inter- and intra- DB data migration tool. Ahmed.

Datanode -> XML

2007-03-09 Thread Aristedes Maniatis
I am looking at a way to export and import data from a Derby database. Built into Derby itself is a tool which exports CSV or tab delimited data, but this has a range of problems with binary data and with compatibility across platforms and different databases, as well as across upgrades of

AW: AW: Java5: the expression of type list needs unchecked conversion

2007-03-09 Thread Peter Schröder
i wonder if this would work: List list = context.performQuery(); my IDE currently is not willing to show the unchecked conversion warning... -Ursprüngliche Nachricht- Von: Andrus Adamchik [mailto:[EMAIL PROTECTED] Gesendet: Montag, 5. März 2007 12:15 An: user@cayenne.apache.org Betreff