Re: Problems with MySql id type with AUTO_INCREMENT

2006-09-29 Thread Tobias SCHOESSLER
Andrus, thanks a lot you for looking into this. That is quite a pile of bugs I am running into here. First this MySQL JDBC driver bug returning java.lang.Long for any auto-increment column, then cayenne treating 'INT UNSIGNED' as an Integer. Now issues with

Re: Error: same entity-name in 2 DataMaps

2006-09-29 Thread Andrus Adamchik
Hi Juergen, I assume you have 2 DbEntities with the same name, mapped to different ObjEntities (otherwise it wouldn't have worked in 1.1 either). Actually you can work around that issue by putting conflicting entities in two different DataDomains, as domains do not share EntityResolvers.

Re: Thread safety and Cayenne ( Tapestry)

2006-09-29 Thread Michael Gentry
Well, since this is your visit (session) instance, shouldn't only one thread at a time be accessing the list? /dev/mrg On 9/29/06, Øyvind Harboe [EMAIL PROTECTED] wrote: Where can I read more about Cayenne and behaviour of objects when accessed from multiple threads simultaneously? We've

Re: Thread safety and Cayenne ( Tapestry)

2006-09-29 Thread Andrus Adamchik
DataContext is not thread-safe, as it is intended for access by a single user. DataDomain and the rest of the stack underneath the DataContext is thread-safe. If a there is a chance of multiple threads belonging to the same user to access the context (and its DataObjects) simultaneously,

Re: Thread safety and Cayenne ( Tapestry)

2006-09-29 Thread Øyvind Harboe
On 9/29/06, Michael Gentry [EMAIL PROTECTED] wrote: Well, since this is your visit (session) instance, shouldn't only one thread at a time be accessing the list? I thought so. But the evidence is that my assumption is broken. I haven't found documentation that clearly explains the Tapestry

Re: Thread safety and Cayenne ( Tapestry)

2006-09-29 Thread Øyvind Harboe
On 9/29/06, Andrus Adamchik [EMAIL PROTECTED] wrote: DataContext is not thread-safe, as it is intended for access by a single user. DataDomain and the rest of the stack underneath the DataContext is thread-safe. If a there is a chance of multiple threads belonging to the same user to access

Re: Problems with MySql id type with AUTO_INCREMENT

2006-09-29 Thread Andrus Adamchik
Yeah, there is quite a few bugs involved. First an explanation on Cayenne strategies... Long works with auto_increment as long as the driver supports it, but doesn't not work with any other strategy, as all of them are based on overriding int JdbcPkGenerator.pkFromDatabase(..). What we

Re: Re: Thread safety and Cayenne ( Tapestry)

2006-09-29 Thread Michael Gentry
The Tapestry rules, as I understand them, are when a request comes in, it can access the visit (session) and that object is associated only for that request (which is running in a thread) for the duration of the request. If you have your DataContext in the visit only, there should be no spill

Re: Thread safety and Cayenne ( Tapestry)

2006-09-29 Thread Robert Zeigler
The multi-threading going on in tapestry (at least for tap3) is nothing more than the normal multi-threading in servlet programming: each request is handled by a separate thread. The only extra thread tapestry (3; can't speak for 4) starts is the janitor thread which cleans up the pool. As

Re: Thread safety and Cayenne ( Tapestry)

2006-09-29 Thread Mike Kienenberger
Alternately, you can use a servlet filter and disallow concurrent requests to the same session: import java.io.IOException; import javax.servlet.Filter; import javax.servlet.FilterChain; import javax.servlet.FilterConfig; import javax.servlet.ServletException; import

Re: Problems with MySql id type with AUTO_INCREMENT

2006-09-29 Thread Tobias . Schoessler
ah ok, thanks for clarifying this. was this MySQL no Locking PkGenerator ever implemented? * Hmm, I got so far with the AUTO_INCREMENT set up, I don't want to drop it so quickly. From reading the Sequoia docs I don't get why the sequoia jdbc driver returns different meta data than the

Cayenne web site design

2006-09-29 Thread Aristedes Maniatis
We have tried to incorporate all the issues people have had with the initial design into this updated design: http://www.brucemartin.net/cayenne/ It achieves a few things: * reduce the size of the left menu to not make it overwhelming * increase the size of the left menu to give more choices