Reverse mapping with many/many association

2008-05-06 Thread James W Loghry
I'm trying to generate annotated classes using a database using the reverse-mapper included with OpenJPA. I have two tables, a and b, that are paired using a many to many association table in between (a_b_junction). Is it possible, using the reverse-mapper task, to customize the generated classes

Re: Getting the persistence unit name from an EntityManagerFactory

2008-05-06 Thread Jeremy Bauer
Hi Roger, If you are able to use the OpenJPA interfaces directly (as opposed to purely using the implementation agnostic JPA interfaces) you can use the OpenJPA SPI to get the pu name from the emf. Here is some sample code: EntityManagerFactory emf = Persistence.createEntityManagerFactor

Using encrypted connection password in persistence.xml

2008-05-06 Thread Rajeev Jha
Hello we have a requirement of using DES encrypted passwords in openjpa persistence.xml file. So before we create an actual connection we want to decrypt the encrypted form. To do that , 1) I need to read the encrypted password value from persistence.xml 2) supply the decrypted form before creatin

Re: List mapping of Enumerated Types

2008-05-06 Thread Brill Pappin
Hibernate JPA does this well with a custom annotation @CollectionOfElements Maybe something similar can be done for OpenJPA. - Brill Pappin On Tue, May 6, 2008 at 5:10 AM, Michael Vorburger <[EMAIL PROTECTED]> wrote: > Amit, > >> I imagine I do not need a join table, but a child table that has th

re: Jazoon conference, anybody?

2008-05-06 Thread [EMAIL PROTECTED]
We are planing to attend from 24 to 26 maybe see there. Andrea > Hello, > > Is anybody "here" may be attending the http://jazoon.com/ > conference (in Zurich/Switzerland, in late June) ? > > I'll be there and it could be fun to meet-up with other > OpenJPA folks from near or far. > > Regards, >

Re: Synchronizing two databases with the same model

2008-05-06 Thread Jonas Petersen
Hi Michael, thank you for the response! I'm afraid that this won't help much. It's about notification. If I get notified I still have to synchronize. Further it "allows a subset of the information available through OpenJPA's transaction events to be broadcast to remote listeners". And "...th

RE: List mapping of Enumerated Types

2008-05-06 Thread Michael Vorburger
Amit, > I imagine I do not need a join table, but a child table that has the owner entity ID, Enumerated > String Value and a Sequence, but I do not know how to represent that in a @OneToMany annotation. This looks a bit like my "Re: One-Sided One-Many Mapping, but to different tables - missing @

Jazoon conference, anybody?

2008-05-06 Thread Michael Vorburger
Hello, Is anybody "here" may be attending the http://jazoon.com/ conference (in Zurich/Switzerland, in late June) ? I'll be there and it could be fun to meet-up with other OpenJPA folks from near or far. Regards, Michael _ Michael Vorburger, Odyssey Financial Tech

RE: Synchronizing two databases with the same model

2008-05-06 Thread Michael Vorburger
Jonas, I wonder if the OpenJPA "Remote and Offline Operation" stuff (http://openjpa.apache.org/docs/latest/manual/ref_guide_event.html) may allow you to build what you're after... Regards, Michael -Original Message- From: Andy Schlaikjer [mailto:[EMAIL PROTECTED] Sent: jeudi, 1. mai 20