Re: Exception in Cayenne Modeler, heap blows up

2010-09-23 Thread Andrus Adamchik
Hi Tomas, Yeah, I think attachments are stripped from the list messages automatically on the server. Are you using the Windows or Mac Modeler? Both are pre configured to run with 0.5 GB of heap space, but maybe -Xmx is getting lost along the way. Andrus On Sep 24, 2010, at 8:07 AM, Tomas Sten

Exception in Cayenne Modeler, heap blows up

2010-09-23 Thread Tomas Stenlund
Hi, I'm modelling a series of database and objectentities and when I add one of the relations and try to synch it, it asks if I want to remove foreign keys mapped as object attributes, and I say yes and the CPU goes into a spin and the heap blows up see stacktrace at end. If I do the same ag

Re: Sorting strings numerically

2010-09-23 Thread Aristedes Maniatis
On 24/09/10 7:43 AM, Marek Šabo wrote: sorry, my first post was probably confusing. I could do it programmatically but I want to know if it is possible with cayenne sorting engine, paraphrased, Can I modify sort order property for cayenne somehow, e.g. as MySQL function INET_ATON()? Meanwhile I

Re: Sorting strings numerically

2010-09-23 Thread Marek Šabo
Hi Michael, sorry, my first post was probably confusing. I could do it programmatically but I want to know if it is possible with cayenne sorting engine, paraphrased, Can I modify sort order property for cayenne somehow, e.g. as MySQL function INET_ATON()? Meanwhile I can create a template query

Re: Sorting strings numerically

2010-09-23 Thread Michael Gentry
Hi Marek, are you asking if the database can do it or are you wanting to do it in your application's memory with (or without) Cayenne? mrg On Thu, Sep 23, 2010 at 6:35 AM, Marek Šabo wrote: > Hi, > > I would like to know if there is a way to sort string(varchar) columns > numerically. I know it'

Re: many to many relation

2010-09-23 Thread gilbertoca
marco turchi wrote: > > the problem is that using the moduler I'm not able to create an > obj-relationship without create a new db-relationship. It means that I > obtain more relationships than the relationships you shown me in the > example > (I obtain what I wrote in the previous email). > I

Sorting strings numerically

2010-09-23 Thread Marek Šabo
Hi, I would like to know if there is a way to sort string(varchar) columns numerically. I know it's bad design but legacy database can't be changed atm. I'm talking about IPv4 columns, which we need to sort. ( In new model I aim to store them as integers and map extra column in cayenne with m

Re: Child Contexts

2010-09-23 Thread Andrus Adamchik
Yes. On Sep 23, 2010, at 11:23 AM, Bruno René Santos wrote: > My main problem was that I was having too many connections problems because > each > portlet has its own DataContext which will have its own connection pool. So > what > you saying is that I only need to configure a JNDI source for

RE: Child Contexts

2010-09-23 Thread Bruno René Santos
My main problem was that I was having too many connections problems because each portlet has its own DataContext which will have its own connection pool. So what you saying is that I only need to configure a JNDI source for all portlets so that all of them share a connection pool? Bruno -Mens

Re: Child Contexts

2010-09-23 Thread Andrus Adamchik
Haven't read the earlier messages. So you are using nested contexts already. In this case a switch from the nested contexts to ROP will probably be less noticeable performance-wise (communication between child and parent layers will still be somewhat slower). Still extra unneeded complexity, so

Re: Child Contexts

2010-09-23 Thread Andrus Adamchik
On Sep 22, 2010, at 2:17 AM, b...@holos.pt wrote: > Can I use a Cayenne client on each portlet and create a cayenne server on a > servlet to receive their requests? this way all database communication is > done by the servlet and not by all portlets. This is possible, but it will add not insigni