RE: Synchronizing two databases with the same model

2008-05-07 Thread Brill Pappin
I haven't really been following the thread, but... I just thought of an old project that might still be active... Something called CJDBC which was an early attempt to provide a driver level replication, cluster and fail-over feature. If it's still around, it might be able do your replication. A

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 ch

RE: Synchronizing two databases with the same model

2008-04-30 Thread Brill Pappin
Actually, the most obvious approach is not to write some special code, but simply enable replication and don't worry about trying to get OJPA to sync. What kind of database is it (most popular db's have replication of one sort or another)? - Brill Pappin -Original Message- F

RE: Slow JPA

2008-04-23 Thread Brill Pappin
hat does the generated SQL look like in your examples? > > -Patrick > > On Fri, Apr 4, 2008 at 7:55 AM, Brill Pappin <[EMAIL PROTECTED]> wrote: > > We were using 1.0 in this project, but its showing up in another > > project using 1.1. > > > > I r

RE: Slow JPA

2008-04-04 Thread Brill Pappin
ving. Not sure exactly when, but we'll drop in an issue in JIRA when we get to it. - Brill Pappin -Original Message- From: Kevin Sutter [mailto:[EMAIL PROTECTED] Sent: Friday, April 04, 2008 11:22 AM To: users@openjpa.apache.org Subject: Re: Slow JPA Brill and others, Thanks for th

Re: Slow JPA

2008-04-04 Thread Brill Pappin
;re going to do about it though, all the ORM frameworks are going through some sort of growing pain at the moment and I can't say I'm happy with any of them. - Brill Pappin On Fri, Apr 4, 2008 at 10:44 AM, Patrick T <[EMAIL PROTECTED]> wrote: > > My issue is even just fetch

RE: Problem with Postgresql TIMESTAMP objects

2008-04-03 Thread Brill Pappin
Isn't type timestamp a long value? - Brill Pappin -Original Message- From: David Goodenough [mailto:[EMAIL PROTECTED] Sent: Thursday, April 03, 2008 4:46 PM To: users@openjpa.apache.org Subject: Problem with Postgresql TIMESTAMP objects In my application I am using an @Version

Re: Direct mappings of list and map

2008-04-02 Thread Brill Pappin
Ahh, that might explain my confusion :) Any idea when the 1.x version will be deployed tot he public repo? I'm attempting to keep my build as reproducible as possible. If I have to I can deploy the 1.1 version to our local archiva. - Brill Pappin On Wed, Apr 2, 2008 at 2:24 AM, Patrick Li

RE: Direct mappings of list and map

2008-04-01 Thread Brill Pappin
ipped during generation. - Brill Pappin -Original Message- From: Patrick Linskey [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 02, 2008 12:24 AM To: users@openjpa.apache.org Subject: Re: Direct mappings of list and map Hi, What version of OpenJPA are you using? What schema is

Direct mappings of list and map

2008-04-01 Thread Brill Pappin
mn private List enumCollection = new ArrayList(); Now what I expect is a linked table that uses all the defaults for those two annotations, however openjpa is skipping the column. I need to do the same thing with a map. E.g Map Does anyone have an example of how this is supposed to work? - Brill Pappin

RE: Slow JPA

2008-03-28 Thread Brill Pappin
As a rule you can expect *any* orm framework to be slower than simple JDBC, there is simply more to do... What you gain from it is ease of maintenance and implementation which will save you time later (often a lot of time). As with anything, you need to weigh the benefits of any solution over anoth

Re: Why would I choose OpenJPA over Hibernate?

2008-02-20 Thread Brill Pappin
, its fairly mature, but I like that all I need is a few annotations to make OpenJPA work. - Brill Pappin Rick Hightower wrote: http://java.dzone.com/news/hibernate-best-choice Has anyone done a comparison of Hibernate versus OpenJPA that compares ease-of-use, caching, tool support, l

Re: Help: Attaching an already persisted object to a new parent.

2007-11-09 Thread Brill Pappin
I'm actually not using the orm.xml at all... i only have a persistence.xml for the connection but I'm one of those that will remove all xml from the configuration if I can (I don't like that I have passwords in my svn repo :) and have been thinking bout trying to manually configure the manager jus

Re: Help: Attaching an already persisted object to a new parent.

2007-11-09 Thread Brill Pappin
Hi Patric, Thats exactly what was happening. I'm using a very agile pattern of one accessors per operation, the transaction handled in the base, so I was loading the Role in one transaction and adding it to the Account in another. I did get it working by changing the concept to one operation per

Help: Attaching an already persisted object to a new parent.

2007-11-08 Thread Brill Pappin
I want to do a simple thing, just attach and already persisted child to a new parent and save the parent (and therefore the reference): Role role = new Role(...); manager..store(role) Role loadedRole = manager..load(); Account account = new Account(); account.getRoles().add(loadedRole); manager

RE: Confusing error message

2007-11-03 Thread Brill Pappin
Funny... I just noticed the same thing :) - Brill Pappin > -Original Message- > From: Patrick Linskey [mailto:[EMAIL PROTECTED] > Sent: November 3, 2007 3:56 PM > To: users@openjpa.apache.org > Subject: Re: Confusing error message > > Thanks. That's

RE: Help - following the docs but just can't get it to work

2007-10-25 Thread Brill Pappin
enjpa > distribution, you should be able to go to > "examples/hellojpa/" and run "ant", and the example should > run. If it doesn't run, there might be something wrong with > the distribution you are using. > > > > On Oct 25, 2007, at 11:02 PM

Help - following the docs but just can't get it to work

2007-10-25 Thread Brill Pappin
Maven 2 user, so my classes are in src/main/java and my resources are in src/main/resources and the openjpa-maven-plugin gives the same error (so its not liking the config as well). does anyone have any idea what the heck is going on? - Brill Pappin