Re: openjpa 2.3.0 source

2013-12-09 Thread Harald Wellmann
Have a look at http://repo1.maven.org/maven2/org/apache/openjpa/openjpa/2.3.0/ I don't think the release has ever been announced on this list, but it's there :-) Regards, Harald 2013/12/9 Leonardo K. Shikida > Hi > > where is it? > > I've tried the link provided at > http://openjpa.apache.org

Re: Auditor issue after upgrading to OpenJPA 2.3.0

2013-12-05 Thread Harald Wellmann
.1. > > Please create a new JIRA for it and we will take a look. > > LieGrue, > strub > > > > >____ > > From: Harald Wellmann > >To: users@openjpa.apache.org > >Sent: Wednesday, 27 November 2013, 15:52 > >Subject: Audit

Auditor issue after upgrading to OpenJPA 2.3.0

2013-11-27 Thread Harald Wellmann
After upgrading from OpenJPA 2.2.2 to 2.3.0, one of my regression tests fails since Auditor.audit() delivers too many objects. In particular, after changing a given field from x to y, some of the updated objects occur twice, with the surplus occurrence reporting the field as changed from y to y. I

Re: Is there any way to get OpenJPA to not log to stderr?

2013-09-26 Thread Harald Wellmann
Does your application include slf4j-api.jar? Regards, Harald 2013/9/26 Chris : > I am running OpenJPA in JBoss and would like it's trace and logging to go to > the JBoss log, rather then standard error, which JBoss captures and then > redirects to the log at priority "ERROR", causing many false-p

Re: OpenJPA support for JPA 2.1: when?

2013-06-18 Thread Harald Wellmann
I'm not concerned about the fact that most OpenJPA committers are IBM employees, but committership *is* de facto closed by the usual Apache meritocracy principles. If you don't get enough volunteers among Apache members for upgrading OpenJPA to JPA 2.1, you might start thinking about making it eas

Re: Error using derby embebed

2013-04-05 Thread Harald Wellmann
> You may have specified an invalid URL. Backslashes are invalid in URLs. Try jdbc:derby:/C:/Users/... or get a decent operating system ;-) Best regards, Harald 2013/4/5 aitor > hello > > i have one embebed derby database into my project and i have this > persistence.xml file. > > > http:

Re: Load logging.properties of java.util.logging for openJPA logging

2012-06-21 Thread Harald Wellmann
Have you set the system property -Djava.util.logging.config.file=mylogging.properties ? JUL does not pick up a configuration file from the classpath. One of many reasons for not using it ;-) Regards, Harald

Metamodel generation with Maven

2012-04-30 Thread Harald Wellmann
Just for the record, metamodel generation with Maven has a couple of gotchas - mostly due to Maven, not to OpenJPA ;-) I wrote up my experience in [1] - maybe this is useful to other OpenJPA users. [1] http://hwellmann.blogspot.de/2012/04/metamodel-classes-for-openjpa-with.html Best regard

Re: Unexpected behaviour for a transient field

2011-11-29 Thread Harald Wellmann
Am 29.11.2011 16:12, schrieb Rick Curtis: Could I have you open a JIRA for this issue? Sure :-) https://issues.apache.org/jira/browse/OPENJPA-2083 Cheers, Harald

Re: Unexpected behaviour for a transient field

2011-11-29 Thread Harald Wellmann
No, MyInterface is a plain old Java interface and not an entity. This interface extends another interface. Neither of these is serializable. Best regards, Harald 2011/11/28 Rick Curtis : > Harold - > > I'm quite surprised that we don't throw an exception, or warning in this > case also. In the ca

Unexpected behaviour for a transient field

2011-11-25 Thread Harald Wellmann
In a code review of an application using OpenJPA 2.1.1 with persistence mapping by annotations, I've just come across an entity class with a non-primitive field which is not annotated: private MyInterface myInterface; I would have put a @Transient annotation on that field (or better still, rem

Re: Best approach for performing OpenJPA enhancement in Eclipse Indigo

2011-11-16 Thread Harald Wellmann
Hi Rick, I think there's some misunderstanding... Your links seem to refer to the OpenJPA Eclipse plugin http://openjpa.apache.org/openjpaeclipseinstallation.html which I've never used, and I don't think I could be of much help with that. My m2e Extension for OpenJPA depends on Maven, the

Re: Best approach for performing OpenJPA enhancement in Eclipse Indigo

2011-11-16 Thread Harald Wellmann
> > (3) From Maven using the openjpa-maven-plugin, as per > >        - Possibly dead, or at least very quiet. >        - Does not appear to work in Indigo even with > > I'm using this com

Compile Scope dependency on JUnit

2011-10-31 Thread Harald Wellmann
I just noticed that my application has an unwanted compile scope Maven dependency on JUnit which is indirectly caused by OpenJPA. OpenJPA 2.1.1 has a compile scope dependency on Serp, and Serp has a compile scope dependency on JUnit, which is likely to be unnecessary. I need to have the compile ti

Query for maps not containing a given key

2011-08-30 Thread Harald Wellmann
Suppose we have an entity "City" with an element collection "names" of type Map, mapping language codes to names. Now what's the best way to write a JPQL query for all cities without an English name? Is there an alternative to using a subquery like this: select city from City city where not e

Re: Problems with load time enhancement and Spring's TomcatInstrumentableClassLoader

2011-07-15 Thread Harald Wellmann
Everyone I know who's moved from Hibernate to OpenJPA agrees that enhancement is a major nuisance in OpenJPA. I'm spending valuable time explaining to my team why this is needed, which of all the warning messages can be ignored and which are real problems, and why we didn't simply stick with H

Re: Problems with load time enhancement and Spring's TomcatInstrumentableClassLoader

2011-07-06 Thread Harald Wellmann
Yes, I read that more than once and double checked my configuration. I also posted in the Spring forum a while ago, with no replies so far. It would be helpful to have some background on the requirements for load time enhancement from the OpenJPA side. How does it normally work in a Java EE con

Problems with load time enhancement and Spring's TomcatInstrumentableClassLoader

2011-07-06 Thread Harald Wellmann
I'm trying to use OpenJPA 2.1.0 with Spring 3.0.5 and Tomcat 6.0.32 and a JPA 2.0 persistence unit configured by annotations. At first, the enhancer did not recognize any of my classes, which looks like the same problem as described in https://issues.apache.org/jira/browse/OPENJPA-1891. Then I

Re: openJPA 1.2 - LEFT OUTER JOIN problem with ALIAS

2011-07-01 Thread Harald Wellmann
In JPA, you cannot use aliases for FETCH JOINs. Remove FETCH and your query should work. Regards, Harald Am 30.06.2011 13:40, schrieb mpf: Hi! I tried following: SELECT p FROM Person p LEFT JOIN FETCH p.fruehereNamenListe f WHERE ( LOWER(p.nachname) LIKE :nachname OR LOWER(f.nachname) LIKE :f

Load Time Enhancement with Spring and Tomcat?

2011-06-30 Thread Harald Wellmann
Does anybody have a copy-and-paste example Spring configuration for an EntityManagerFactory with OpenJPA 2.1.0, Spring 3.0 and Tomcat 6.x with Load Time Enhancement? The main point is load time enhancement, I would like to avoid build time enhancement to stay portable. Thanks, Harald -- NEU:

Re: Dynamic Enhancement not working on Oracle JDK/Linux

2011-06-16 Thread Harald Wellmann
Hi Mike, yes, I had to switch to the agent now, as the Dynamic Enhancer did not work for me in all cases even with the symlink workaround (probably because some Entity classes were loaded before the EMF was created, but I'm using the Spring Test Context, and I can't really control what's going

Dynamic Enhancement not working on Oracle JDK/Linux

2011-06-16 Thread Harald Wellmann
There's a problem with setting up dynamic enhancement for OpenJPA 2.1.0 with recent Oracle JDKs on Linux, related to the java.home system property. org.apache.openjpa.enhance.InstrumentationFactory.findToolsJar() attempts to load the tools.jar from ${java.home}/lib/tools.jar. The problem is tha

Re: Using OpenJPA on OSGi, with Aries JPA and JNDI services

2010-09-26 Thread Harald Wellmann
Here's the JIRA issue with the sample code and test case: https://issues.apache.org/jira/browse/OPENJPA-1815 Best regards, Harald -- View this message in context: http://openjpa.208410.n2.nabble.com/Using-OpenJPA-on-OSGi-with-Aries-JPA-and-JNDI-services-tp5547972p5571576.html Sent from the Ope

Re: Using OpenJPA on OSGi, with Aries JPA and JNDI services

2010-09-22 Thread Harald Wellmann
I can offer a simple example project with 3 tiny bundles and a Pax Exam integration test, using only OpenJPA, basic OSGi and the JPA and JNDI Services from Aries, no Blueprint or anything else. This could not only serve as example code, but maybe even as a start for OSGi related tests in the Open

Using OpenJPA on OSGi, with Aries JPA and JNDI services

2010-09-19 Thread Harald Wellmann
I'm currently trying to integrate OpenJPA into an existing OSGi application. With some help from Tim Ward and others from the Aries User mailing list, I now have a solution which works fairly well and does not require any artillery like DynamicImport-Package. There doesn't seem to be a lot of d

OSGi-ready Distribution

2010-09-17 Thread Harald Wellmann
When you download the OpenJPA binary distribution, you get the main OpenJPA JAR as an OSGi bundle, but most of the dependencies are plain old JARs, so you have to go shopping for osgified versions. I got mine from the SpringSource Enterprise Bundle Repository. The same is true when working with M

Re: Status of OSGi Support

2010-09-17 Thread Harald Wellmann
Hi Kevin, Kevin Sutter wrote: > > Yes, the OpenJPA community is interested in OSGi. > Glad to hear that. Kevin Sutter wrote: > > It sounds like you are very interested in getting OpenJPA working with > Equinox, so hopefully you are also interested in helping to provide > testcases and ve

Status of OSGi Support

2010-09-17 Thread Harald Wellmann
I'm currently trying to make OpenJPA work in an OSGi context (using Equinox). Searching the OpenJPA mailing list archives, I found two pointers to OPS4J and to Apache Aries, both of which only work partially for my application. The only solution I've found so far is based on buddy policies, which

Eager fetch problem with map collections

2010-09-15 Thread Harald Wellmann
I have an entity with a map collection, and I'm trying to select a list of these entities with an eager fetch for the map collection. I read about OpenJPA's Eager Fetch Modes NONE, PARALLEL and JOIN, and I've experimented with various global or per-query settings, but I'm always getting the NONE

Re: Bug or Feature: Persistent Map Merge Behaviour

2010-09-08 Thread Harald Wellmann
I created a bug report for this issue: https://issues.apache.org/jira/browse/OPENJPA-1784 I've attached a patch file with a unit test exposing the problem, trying to follow the guidelines on the OpenJPA homepage. Hope I didn't miss anything important. Best regards, Harald -- View this message

Re: Confusing warning about openjpa.jdbc.SynchronizeMappings

2010-09-07 Thread Harald Wellmann
Hi Kevin, I can't offer a fix (yet), but I think I've pinpointed the problem. Here is a little test case: import static org.junit.Assert.assertEquals; import org.apache.openjpa.jdbc.conf.JDBCConfigurationImpl; import org.junit.Test; public class ConfigurationTest { @Test public void cl

Confusing warning about openjpa.jdbc.SynchronizeMappings

2010-09-03 Thread Harald Wellmann
Using OpenJPA 2.0.1 with automatic schema generation, I'm getting the following warning: The configuration property named "openjpa.jdbc.SynchronizeMappings" was not recognized and will be ignored, although the name closely matches a valid property called "openjpa.jdbc.SynchronizeMappings" So t

Re: Bug or Feature: Persistent Map Merge Behaviour

2010-08-21 Thread Harald Wellmann
Rick Curtis wrote: > > Are you using a DetachedStateManager? > I don't think so - I'm just using the official JPA APIs in this context and no OpenJPA specifics. I can't post my persistence.xml, but I can try to isolate a simple test case and post that. Regards, Harald -- View this message

Bug or Feature: Persistent Map Merge Behaviour

2010-08-20 Thread Harald Wellmann
I have an entity with a map element collection where the map value is an Embeddable. @Embeddable public class LocalizedString { private String language; private String text; // getters and setters omitted } @Entity public class MultilingualString { @Id private long id

Re: Strange warnings about query parameters

2010-08-18 Thread Harald Wellmann
The funny thing is, it does not bomb. I turned on DEBUG logging and looked at the generated SQL query which is ok. I also manually ran the SQL query to verify the results. All this happens in the context of a web app running on Glassfish 3.0.1, and the problem is reproducible always within this a

Re: Strange warnings about query parameters

2010-08-17 Thread Harald Wellmann
Thanks - the type of l.category is simply String. Does the bug only lead to strange log messages, or does it also affect the query execution or the result set? So far I did not notice any negative effects except this message, but maybe I just didn't look close enough... Regards, Harald -- Vi

Strange warnings about query parameters

2010-08-17 Thread Harald Wellmann
I'm getting warnings of the following type which do not make sense to me: WARN openjpa.Runtime - Supplied user parameters "[category]" do not match expected parameters "[]" for the prepared query "PreparedQuery: [select l from DomainValue l where lower(l.category) like :category] The query has

Re: Override "jta-data-source" with system properties?

2010-07-19 Thread Harald Wellmann
Mike, yes, that's the exception I'm seeing. And I do have @GeneratedValues - of type SEQUENCE though, but these also get mapped to a table, at least on Postgres. So I suppose that explains why your simpler approach works for you and not for me. Anyway, problem solved, but it might be useful to ad

Re: Override "jta-data-source" with system properties?

2010-07-19 Thread Harald Wellmann
Hmm, can you be a bit more specific about your "quick test"? How did you set your datasource properties then? Setting these two properties to "", I keep getting an exception regarding a non-existent transaction manager. Meanwhile, I've found a solution that works for me. persistence.xml:

Re: OpenJPA and PostGIS or other spatial extensions

2010-07-19 Thread Harald Wellmann
Thanks for your feedback so far. By now, I've converted my complete entity model from Hibernate to JPA (on a trial branch...) and the experience has been rather painless. Finally, certain things that never worked with Hibernate are not a problem any longer. I discovered inconsistencies in my model

RE: Override "jta-data-source" with system properties?

2010-07-17 Thread Harald Wellmann
This does not seem to work in OpenJPA 2.0.0. I have a for a Java EE web app in my persistence.xml, which I'm trying to override for unit tests by setting properties when creating the EntityManagerFactory in a Java SE environment. props.put("openjpa.ConnectionFactory2Name", "");

OpenJPA and PostGIS or other spatial extensions

2010-07-16 Thread Harald Wellmann
I'm currently evaluating OpenJPA as a replacement for Hibernate. I'm rather frustrated by the lack of JPA 2.0 compliance in Hibernate, and I'm glad to say I haven't run into any such problems with OpenJPA so far. On the other hand, there are some extensions beyond the scope of JPA which work with