Re: Maven2 cgen task problem

2010-05-23 Thread Andrey Razumovsky
2010/5/24 Gary Jarrel > > Content is not allowed in prolog. > This looks like encoding problem. I'm not sure whether you can specify encoding in cgen though. -- Andrey

Re: Maven2 cgen task problem

2010-05-23 Thread Andrus Adamchik
Try running Maven with more debug output, e.g.: mvn -e -X Maybe there will be some more clues. Andrus On May 24, 2010, at 9:26 AM, Gary Jarrel wrote: Hi All I started working today on integrating our application with another database. So as expected I created another node and another tree

Re: Blobs in the DataContext

2010-05-23 Thread Andrus Adamchik
Some database products offer "streaming" to and from BLOBs which is one get-around for these problems. This means you can theoretically get away with not having to hold the whole hunk of data in memory at once. Yeah, I was wondering the same thing. Blob is an interface that you can imple

Maven2 cgen task problem

2010-05-23 Thread Gary Jarrel
Hi All I started working today on integrating our application with another database. So as expected I created another node and another tree in the modeler, added just one table. And updated my Maven cgen task as follows: org.apache.cayenne.plugins maven-cayenne-plugin ${cayenne.versi

Re: Some doubts about DataContext and memory allocation

2010-05-23 Thread mr.abanjo
Thanks Mike and Michael! As usual, you are very kind. So, there are a lot of "strategy" using datacontext, but the singleton is the bad one :-) The write operation i perfrom in my site is very simple. It's just an insert of two fields in a single table. So maybe also singleton should work, but i'm