the pain of post processing bytecode (another beg for a simple reflection/cglib alternative like hibernate)

2007-05-17 Thread James.Strachan
Firstly before I start, openjpa is a great piece of software; I'm particularly fond of the documentation and in particular the query language parts. The CSS for the site is also awesome :) However compared to hibernate, openjpa is still pretty painful to use from an end users perspective and I

Re: the pain of post processing bytecode (another beg for a simple reflection/cglib alternative like hibernate)

2007-05-17 Thread Michael Dick
Hi James, I don't know how easy this is to do with IDEA, but what I've done in Eclipse is to create the project via mvn eclipse:eclipse then create a run definition for org.apache.openjpa.enhance.PCEnhancer. With no other classpath tweaking it enhances the entities in the output directory and

[jira] Commented: (OPENJPA-206) Key column does not cascade multiple joins.

2007-05-17 Thread Matt Anderson (JIRA)
[ https://issues.apache.org/jira/browse/OPENJPA-206?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12496554 ] Matt Anderson commented on OPENJPA-206: --- Just to clarify, by later, do you mean in another transaction? Can

RE: JNDI lookup in OpenJPA.

2007-05-17 Thread Pinaki Poddar
Hello, We are trying to understand the meaning of Enhancing the DTO object to Persistence capabilities as observed in the trace of the exception. OpenJPA needs to enhance the Java classes to be stored in a database. Enhancement means modification of original Java class bytecode with special

Re: Proposed Board Resolution: Graduate OpenJPA as a Top Level Project

2007-05-17 Thread Craig L Russell
Hi Eddie, Thanks to you for your guidance through the incubator. I'll certainly ask you for help during the transition. Craig On May 17, 2007, at 5:44 AM, Eddie O'Neil wrote: Craig-- It went very well -- the Board unanimously passed the resolution to create an OpenJPA TLP with you as the

Re: the pain of post processing bytecode (another beg for a simple reflection/cglib alternative like hibernate)

2007-05-17 Thread Patrick Linskey
How hard is it to add a reflection/cglib type alternative to the upfront bytecode generation (like hibernate does) to save us from the development-time pain? Not particularly hard. There are a few APIs that would break for some cases, but it's even pretty straightforward to do a subclassing

Re: the pain of post processing bytecode (another beg for a simple reflection/cglib alternative like hibernate)

2007-05-17 Thread Patrick Linskey
Patrick also mentioned writing an IDEA plug-in (not sure if that's the right name) that would do the enhancement. I believe he ran into a few snags getting access to IntelliJ jars. This or something similar might be a good solution for you. Ideally we'll have Eclipse, IDEA and NetBeans plugins

Re: JNDI lookup in OpenJPA.

2007-05-17 Thread Kevin Sutter
On 5/17/07, Murali [EMAIL PROTECTED] wrote: and the following error is getting displayed. Persistence.xml file is available in the META-INF folder. Okay, and is this META-INF folder available to your build environment? The classpath that is referenced via your classpathref=dao.classpath

Re: the pain of post processing bytecode (another beg for a simple reflection/cglib alternative like hibernate)

2007-05-17 Thread Marc Prud'hommeaux
I think this is a very worthwhile project. James and a few others excoriated me about this issue over beers after JavaOne last week, and, while the bruises from their rhetorical assault are still healing, their observations about the comparative out of the box ease of use OpenJPA

Re: Lock-free HashMap

2007-05-17 Thread Marc Prud'hommeaux
I recall Patrick was looking into replacing some of our slower Map plumbing recently. If he is still working on that, it would be interesting to see if these could be dropped in to see what the performance differences were. On May 16, 2007, at 9:21 PM, Craig L Russell wrote: Don't

Re: Lock-free HashMap

2007-05-17 Thread David Jencks
On May 17, 2007, at 3:41 PM, Marc Prud'hommeaux wrote: I recall Patrick was looking into replacing some of our slower Map plumbing recently. If he is still working on that, it would be interesting to see if these could be dropped in to see what the performance differences were. From

Re: the pain of post processing bytecode (another beg for a simple reflection/cglib alternative like hibernate)

2007-05-17 Thread David Jencks
James, Could extract from this verbiage the scenarios you'd like supported? Do you need to run tests inside IDEA and have you classes enhanced after IDEA compiles them for you? Do you need to run in a separate jvm, e.g. from maven, and have the classes enhanced as they are loaded? I

Re: the pain of post processing bytecode (another beg for a simple reflection/cglib alternative like hibernate)

2007-05-17 Thread David Ezzio
I think that the issues raised are best solved with tools, documentation, and examples. Of course, if one has been coding to Hibernate for years, it's unlikely that any combination of tools, documentation, and examples will make OpenJPA easier to use for that person, but that's not the

Re: Fwd: Lock-free HashMap

2007-05-17 Thread David Ezzio (asmtp)
Hi Craig, Another ConcurrentHashMap implementation that is available for JDK 1.4 comes from Emory University's Distributed Computing Lab. (http://harness2.org/util/backport-util-concurrent/dist/) One of their goals to make the source easily upgraded to java.util.concurrent once JDK 1.4 is