Re: Re: Cayenne 3.0 roadmap

2006-10-30 Thread Giulio Cesare Solaroli
Hi Andrus, I don't know JPA API, but you can definitely count on me for discussions on design issues. I can not grant any time to coding now, but I will try to do my best. Now, for the project I am working at, I need to find out how to do DB based test the Cayenne way. Once I have struggled to

Cayenne junit testing, Was: Cayenne 3.0 roadmap

2006-10-30 Thread Aristedes Maniatis
On 30/10/2006, at 7:20 PM, Giulio Cesare Solaroli wrote: Now, for the project I am working at, I need to find out how to do DB based test the Cayenne way. Once I have struggled to set up a sound test environment, playing with the new expression package should be much easier. Yes, we at ish

Re: Cayenne junit testing, Was: Cayenne 3.0 roadmap

2006-10-30 Thread Andrus Adamchik
Current default Cayenne unit tests are probably a bad model, as most bootstrap code was written before Cayenne was even operational. However the new Maven-based integration test package that targets testing of POJO's is the state of the art as far as I am concerned (can be used from Ant as

Is there an awakeFromInsertion equivalent in cayenne?

2006-10-30 Thread Watkins, Garry
I need to set up some default values. Is there an equivalent to awakeFromInsertion (WebObjects) for Cayenne? Thanks -- Garry Watkins Database Administrator Motley Rice LLC 843-216-9639 Confidential Privileged Unless otherwise indicated or obvious from its nature, the information

Re: Is there an awakeFromInsertion equivalent in cayenne?

2006-10-30 Thread Bryan Lewis
Not directly. When we converted our old WebObjects apps, we made a custom superclass that hooks setPersistenceState(): /** * When any of our objects is inserted, call a method * awakeFromInsertion() to allow the object class to do initialization. */ public void

Adding Property

2006-10-30 Thread Peter
Hallo Cayenne Users! The generic-exmaple (see http://cwiki.apache.org/confluence/display/CAY/Generic+DataObjects+Example) was useful for me. There you add columns via: DbEntity messageTable = orMapping.getDbEntity(message); DbAttribute topicColumn = new DbAttribute(topic, Types.VARCHAR,

Re: Re: Is there an awakeFromInsertion equivalent in cayenne?

2006-10-30 Thread Michael Gentry
setPersistenceState is what I use, too, but I believe Andrus mentioned there'd be other ways of doing it in 3.0 and I believe there were some ROP issues with it, too. If you aren't using ROP, you should be fine. /dev/mrg On 10/30/06, Bryan Lewis [EMAIL PROTECTED] wrote: Not directly. When

Re: Is there an awakeFromInsertion equivalent in cayenne?

2006-10-30 Thread Watkins, Garry
How have things worked since you transitioned away from WO? Any major hurdles that you have encountered? Would you recommend doing it? Thanks -- Garry Watkins Database Administrator Motley Rice LLC 843-216-9639 From: Bryan Lewis [EMAIL PROTECTED] Reply-To:

Transition from EOF to Cayenne

2006-10-30 Thread Dov Rosenberg
We are looking to consolidate our code bases between our Cayenne based web services and our WebObjects/EOF based applications. Has anyone written any transition classes or notes of things that they did to help the code porting? We have 2 separate models but we need to deal with NSArrays, NSData,