Re: Cayenne POJO enhancer

2007-10-25 Thread Andrus Adamchik
On Oct 25, 2007, at 10:40 PM, Gilberto C Andrade wrote: Will the cayenne modeler support the ability to add Persistent Types (Entities, etc) to the ORM XML? It does not at the moment, only Cayenne XML format. In the future - possibly. But if I build that file (orm.xml) by hand or with othe

Re: Cayenne POJO enhancer

2007-10-25 Thread Gilberto C Andrade
>> Will the cayenne modeler support the ability to add Persistent Types >> (Entities, etc) to the ORM XML? > > It does not at the moment, only Cayenne XML format. In the future - > possibly. But if I build that file (orm.xml) by hand or with other tool, cayenne will recognize it? Will I be able t

Re: Cayenne POJO enhancer

2007-10-25 Thread Andrus Adamchik
On Oct 25, 2007, at 9:41 PM, Gilberto C Andrade wrote: Will the cayenne modeler support the ability to add Persistent Types (Entities, etc) to the ORM XML? It does not at the moment, only Cayenne XML format. In the future - possibly. * It does NOT require annotations. * It does req

Re: Cayenne POJO enhancer

2007-10-25 Thread Gilberto C Andrade
Andrus Adamchik wrote: > > On Oct 25, 2007, at 7:36 PM, Gilberto C Andrade wrote: >>> In other words if that's an offer to work together with Cayenne >>> developers to address the things missing or broken in the JPA provider, >>> we will gladly accept such help. >> >> That's the intention! We hope

Re: Cayenne POJO enhancer

2007-10-25 Thread Andrus Adamchik
On Oct 25, 2007, at 7:36 PM, Gilberto C Andrade wrote: In other words if that's an offer to work together with Cayenne developers to address the things missing or broken in the JPA provider, we will gladly accept such help. That's the intention! We hope to help and not bring more problem!

Re: Cayenne POJO enhancer

2007-10-25 Thread Gilberto C Andrade
Mike Kienenberger wrote: > One possibility is to migrate to JPA using Hibernate, then once > everything is in JPA, switch to Cayenne/OpenJPA/TopLink Essentials. This is a good option! But the idea isn't migrate and thus use the POJO api as is, without change it. Gilberto > > Note that Cayenne's

Re: Cayenne POJO enhancer

2007-10-25 Thread Gilberto C Andrade
First, sorry for double post (we have some problems with firewall) > > Hehe, of course I'll suggest to help Cayenne, but you've been warned ;-) > > In other words if that's an offer to work together with Cayenne > developers to address the things missing or broken in the JPA provider, > we will g

Re: Cayenne POJO enhancer

2007-10-25 Thread Andrus Adamchik
On Oct 25, 2007, at 6:39 PM, Gilberto C Andrade wrote: So, this is a good chance to help cayenne. Or are you suggesting another one (OpenJPA, Hibernate, TopLink, etc). Hehe, of course I'll suggest to help Cayenne, but you've been warned ;-) In other words if that's an offer to work togethe

Re: Cayenne POJO enhancer

2007-10-25 Thread Mike Kienenberger
One possibility is to migrate to JPA using Hibernate, then once everything is in JPA, switch to Cayenne/OpenJPA/TopLink Essentials. Note that Cayenne's JPA support is still incomplete at the moment, but is getting better every day thanks to Andrus. On 10/25/07, Gilberto C Andrade <[EMAIL PROTECTE

Cayenne POJO enhancer

2007-10-25 Thread Gilberto C Andrade
Hi all, I've been searching on docs/maillist about how to persist an already existent pojo, but have no luck. Let me explain: we have two old projects build with hibernate 2.1.8 and all model are marked with hibernate tag on doc area in java source [1]. But now we want to use those models with cay

Re: Cayenne POJO enhancer

2007-10-25 Thread Gilberto C Andrade
Andrus Adamchik wrote: > Hi Gilberto, > > There's no automated way port a Hibernate project to Cayenne, but you But, I can map those pojos to jpa config file by hand, can't I? > can certainly do that manually. I would suggest to use Cayenne Sorry, I should have mentioned that we will use those new

Re: Issuing a debug SQL statement for a given transaction

2007-10-25 Thread Andrus Adamchik
Here is one way of doing it - manual transactions that can wrap an arbitrary number of statements. You can use SQLtemplate to execute the constraints statement before context commit: http://cayenne.apache.org/doc/understanding-transactions.html Andrus On Oct 24, 2007, at 11:04 PM, Giulio Ce

Re: Cayenne POJO enhancer

2007-10-25 Thread Andrus Adamchik
Hi Gilberto, There's no automated way port a Hibernate project to Cayenne, but you can certainly do that manually. I would suggest to use Cayenne traditional non-POJO API (while POJO/JPA stuff is still pre-alpha, Cayenne API is production quality and has fewer surprises). The quickest way