<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:old.nabble.com,2006:forum-26430</id>
	<title>Nabble - EclipseLink</title>
	<updated>2009-11-27T08:19:39Z</updated>
	<link rel="self" type="application/atom+xml" href="http://old.nabble.com/EclipseLink-f26430.xml" />
	<link rel="alternate" type="text/html" href="http://old.nabble.com/EclipseLink-f26430.html" />
	<subtitle type="html">The Eclipse Persistence Services Project (EclipseLink) provides an extensible framework that enables Java developers to interact with relational databases, XML, and Enterprise Information Systems (EIS). EclipseLink will provide support for a number of persistence standards including the Java Persistence API (JPA), Java API for XML Binding (JAXB), Java Connector Architecture (JCA), and Service Data Objects (SDO).
&lt;br&gt;&lt;br&gt;Home: &lt;a href=&quot;http://www.eclipse.org/eclipselink/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.eclipse.org/eclipselink/&lt;/a&gt;&lt;br&gt;Wiki: &lt;a href=&quot;http://wiki.eclipse.org/EclipseLink&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://wiki.eclipse.org/EclipseLink&lt;/a&gt;</subtitle>
	
<entry>
	<id>tag:old.nabble.com,2006:post-26544553</id>
	<title>Check in Bug 269561 - jpa/customfeatures model failed with &quot;org.eclipse.persistence.exceptions.ConversionException&quot; on WebSphere 7.0.0.1</title>
	<published>2009-11-27T08:19:39Z</published>
	<updated>2009-11-27T08:19:39Z</updated>
	<author>
		<name>tware</name>
	</author>
	<content type="html">&lt;a href=&quot;https://bugs.eclipse.org/bugs/show_bug.cgi?id=269561&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://bugs.eclipse.org/bugs/show_bug.cgi?id=269561&lt;/a&gt;&lt;br&gt;&lt;br&gt;Fix makes it so FieldClassification set at Predeploy time is set by class name 
&lt;br&gt;and converted to a class by the real classloader
&lt;br&gt;&lt;br&gt;reviewed by Guy Pelletier
&lt;br&gt;&lt;br&gt;Fix makes broken tests pass
&lt;br&gt;&lt;br&gt;Also tested with full JPA and Core LRG
&lt;br&gt;_______________________________________________
&lt;br&gt;eclipselink-dev mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26544553&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eclipselink-dev@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/EclipseLink---Dev-f26332.html&quot; embed=&quot;fixTarget[26332]&quot; target=&quot;_top&quot; &gt;EclipseLink - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Check-in-Bug-269561---jpa-customfeatures-model-failed-with-%22org.eclipse.persistence.exceptions.ConversionException%22-on-WebSphere-7.0.0.1-tp26544553p26544553.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26544480</id>
	<title>Re: multible fetch joins</title>
	<published>2009-11-27T08:14:03Z</published>
	<updated>2009-11-27T08:14:03Z</updated>
	<author>
		<name>Michael Simons</name>
	</author>
	<content type="html">Thanks a lot. That's what I was looking for.
&lt;br&gt;&lt;br&gt;Tom Ware schrieb:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi Michael,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; The limitation on JPQL fetch joins comes from the JPA specification.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; Have a look at the following link to see how you can get multiple
&lt;br&gt;&amp;gt; fetch joins in all versions of EclipseLink.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://wiki.eclipse.org/Using_EclipseLink_JPA_Extensions_%28ELUG%29#Join_Fetch&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://wiki.eclipse.org/Using_EclipseLink_JPA_Extensions_%28ELUG%29#Join_Fetch&lt;/a&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; We are currently considering what the feature set will be for
&lt;br&gt;&amp;gt; EclipseLink 2.1 and the following enhancement request covers expanding
&lt;br&gt;&amp;gt; EclipseLink's JPQL capabilities beyond the JPA spec. &amp;nbsp;Please feel free
&lt;br&gt;&amp;gt; to vote for it and add any comments you have.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://bugs.eclipse.org/bugs/show_bug.cgi?id=219814&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://bugs.eclipse.org/bugs/show_bug.cgi?id=219814&lt;/a&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; -Tom
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Michael Simons wrote:
&lt;br&gt;&amp;gt;&amp;gt; Hello [EclipseLink 1.2.0, database=MySQL 5],
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I'm trying to port a client/server application first to JPA to enable
&lt;br&gt;&amp;gt;&amp;gt; the 3-tier migration.
&lt;br&gt;&amp;gt;&amp;gt; At the moment I try to use EclipseLink as JPA implementation.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; EclipseLink 1.2.0 does not support multible fetch joins like
&lt;br&gt;&amp;gt;&amp;gt; select a from A a fetch join A.b b ...
&lt;br&gt;&amp;gt;&amp;gt; because the alias 'b' is already denied.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Will this be supported in the 2.x of EclipseLink?
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Kind Regards,
&lt;br&gt;&amp;gt;&amp;gt; Michael
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt;&amp;gt; eclipselink-users mailing list
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26544480&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eclipselink-users@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;https://dev.eclipse.org/mailman/listinfo/eclipselink-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://dev.eclipse.org/mailman/listinfo/eclipselink-users&lt;/a&gt;&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; eclipselink-users mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26544480&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eclipselink-users@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://dev.eclipse.org/mailman/listinfo/eclipselink-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://dev.eclipse.org/mailman/listinfo/eclipselink-users&lt;/a&gt;&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;eclipselink-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26544480&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eclipselink-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://dev.eclipse.org/mailman/listinfo/eclipselink-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://dev.eclipse.org/mailman/listinfo/eclipselink-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/EclipseLink---Users-f26658.html&quot; embed=&quot;fixTarget[26658]&quot; target=&quot;_top&quot; &gt;EclipseLink - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/multible-fetch-joins-tp26541274p26544480.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26544472</id>
	<title>Please Read - 2.0.0 RC Build today.</title>
	<published>2009-11-27T08:07:37Z</published>
	<updated>2009-11-27T08:07:37Z</updated>
	<author>
		<name>Peter Krogh</name>
	</author>
	<content type="html">We are doing an RC build today early afternoon for 2.0.0.
&lt;br&gt;&lt;br&gt;The branch will be done over the weekend.
&lt;br&gt;&lt;br&gt;Trunk is frozen until the completion of the branch announcement.
&lt;br&gt;&lt;br&gt;Thank you
&lt;br&gt;_______________________________________________
&lt;br&gt;eclipselink-dev mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26544472&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eclipselink-dev@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/EclipseLink---Dev-f26332.html&quot; embed=&quot;fixTarget[26332]&quot; target=&quot;_top&quot; &gt;EclipseLink - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Please-Read---2.0.0-RC-Build-today.-tp26544472p26544472.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26544307</id>
	<title>RE: Expanding  'standards' for build files.</title>
	<published>2009-11-27T07:56:02Z</published>
	<updated>2009-11-27T07:56:02Z</updated>
	<author>
		<name>Edwin Tang</name>
	</author>
	<content type="html">The example code using the other option is like:
&lt;br&gt;&lt;br&gt;common.plugin.dir=./plugins
&lt;br&gt;external.depends.dir=../external.lib
&lt;br&gt;junit.lib=junit-4.5.jar
&lt;br&gt;junit.dir=${external.depends.dir}
&lt;br&gt;&lt;br&gt;&lt;br&gt;after testing for existence of junit.lib and others...
&lt;br&gt;&amp;lt;path pathref=&amp;quot;external.compile.deps.path&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;pathelement =&amp;quot;${junit.dir}/${junit.lib}/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;pathelement=&amp;quot;${jdbc.dir}/${jdbc.lib}&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; ...
&lt;br&gt;&amp;lt;/path&amp;gt;
&lt;br&gt;&lt;br&gt;It looks like there are no differences but personal preferences. Either option is fine for me.
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;Edwin
&lt;br&gt;&lt;br&gt;-----Original Message-----
&lt;br&gt;From: Eric Gwin 
&lt;br&gt;Sent: Friday, November 27, 2009 10:46 AM
&lt;br&gt;To: Dev mailing list for Eclipse Persistence Services
&lt;br&gt;Subject: Re: [eclipselink-dev] Expanding 'standards' for build files.
&lt;br&gt;&lt;br&gt;&lt;br&gt;So if you want to say use &amp;quot;junit.jar&amp;quot; as the filename, you only need to 
&lt;br&gt;redefine ${junit.jar}, if you want a different directory to hold all 
&lt;br&gt;your dependencies you only need to redefine ${external.depends.dir}, and 
&lt;br&gt;if you want to do both and use a custom named xdb-11-rel2.jar, in a 
&lt;br&gt;completely seperate location with the previous setup you could simply 
&lt;br&gt;add a redefinition of ${xdb.lib}.
&lt;br&gt;&lt;br&gt;-Eric
&lt;br&gt;&lt;br&gt;Eric Gwin wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; It doesn't. It's more like: (values are just for example...):
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; common.plugin.dir=./plugins
&lt;br&gt;&amp;gt; external.depends.dir=../external.lib
&lt;br&gt;&amp;gt; junit.jar=junit-4.5.jar
&lt;br&gt;&amp;gt; junit.lib=${external.depends.dir}/${junit.jar}
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; after testing for existence of junit.lib and others...
&lt;br&gt;&amp;gt; &amp;lt;path pathref=&amp;quot;external.compile.deps.path&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;lt;pathelement =&amp;quot;${junit.lib}/&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;lt;pathelement=&amp;quot;${jdbc.lib}&amp;quot;/&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; ...
&lt;br&gt;&amp;gt; &amp;lt;/path&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; That minimal redefinitions need to be made for jar names or dirs if 
&lt;br&gt;&amp;gt; they are customized, and jars can be grouped together, or in different 
&lt;br&gt;&amp;gt; dirs, as required by the developer/user. However, the defined location 
&lt;br&gt;&amp;gt; can still be tested for (verify it is found), before it is added to a 
&lt;br&gt;&amp;gt; classpath (which in many cases will cause errors if it doesn't exist).
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; -Eric
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Edwin Tang wrote:
&lt;br&gt;&amp;gt;&amp;gt; Hi Gordon,
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; If the proposal includes a plan to introduce &amp;lt;name&amp;gt;.dir for every 
&lt;br&gt;&amp;gt;&amp;gt; single jar file, then there are no substantial differences between 
&lt;br&gt;&amp;gt;&amp;gt; these 2 options.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt;&amp;gt; Edwin
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt;&amp;gt; From: Gordon Yorke Sent: Friday, November 27, 2009 9:34 AM
&lt;br&gt;&amp;gt;&amp;gt; To: Dev mailing list for Eclipse Persistence Services
&lt;br&gt;&amp;gt;&amp;gt; Subject: Re: [eclipselink-dev] Expanding 'standards' for build files.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I prefer Eric's proposal for &amp;lt;name&amp;gt;.jar, &amp;lt;name&amp;gt;.lib and &amp;lt;name&amp;gt;.dir
&lt;br&gt;&amp;gt;&amp;gt; --Gordon
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Edwin Tang wrote:
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Hi Eric,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; This is great initiative.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Probably, instead of &amp;lt;name&amp;gt;.jar, &amp;lt;name&amp;gt;.lib and &amp;lt;name&amp;gt;.path, it 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; could better that we have
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;lt;name&amp;gt;.dir: the location of a jar file
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;lt;name&amp;gt;.lib: a jar file name
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;lt;name&amp;gt;.path: a path element defined by &amp;lt;pathelement 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; path=&amp;quot;${&amp;lt;name&amp;gt;.dir}/${&amp;lt;name&amp;gt;.lib}&amp;quot;/&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; The benifits of this option are:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 1. Users have full flexibility to able to customize &amp;lt;name&amp;gt;.dir, 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;lt;name&amp;gt;.lib, or both for every single jar file
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 2. Avoid the difficulty to choose a sound property name - &amp;lt;name&amp;gt;.jar 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; or &amp;lt;name&amp;gt;.jarfile
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 3. Be consistent with the TopLink test/build naming conventions
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Edwin
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; From: Eric Gwin Sent: Thursday, November 26, 2009 8:06 AM
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; To: Dev mailing list for Eclipse Persistence Services
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Subject: [eclipselink-dev] Expanding 'standards' for build files.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; I'm sending this out as a notification/proposal of some additional 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; standard conventions I plan on adding to our build files after the 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; branch.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;- properties ending in .jar define jarfile names only (no path)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;- properties ending in .lib are fully qualified jars (path and 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; filename)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;- properties ending in .dir are directory paths
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;- properties ending in .path are path refid names (classpath 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; fragments)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;- targets beginning with test- are reserved for high level test 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; targets,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;and are used in test results parsing
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;- targets typically use the form &amp;lt;action&amp;gt;-&amp;lt;object&amp;gt;-&amp;lt;type&amp;gt; (ie. 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; package-bundle-zip)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Some are clarifications of standards already in place, but not well 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; publicized. However, with regard to .jar/.lib and .dir/.path there 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; is no current standard, and properties are named and used in a 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; fairly random mostly interchangeable way. There are many reasons 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; this is becoming an issue now, but here are the biggest:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;- bugs requesting the use of minimal classpaths necessitate the 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; need to individually
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;define libraries. However, the build has multiple entry 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; points so paths to those
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;libraries are relative to the entry point. So the need to 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; separate path from jar name.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;- adding individual libraries (rather than 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; eclipselink.core.depend or eclipslink.oracle.depend
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; which list them all) also creates a need to separately 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; define directories and classpath subsets.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; For the most part I've tried to keep the usage most prevalent for 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; each postfix
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp;-.lib was mostly used to define full paths to jars, while .jar 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; mostly defined jar names. However,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp;there are also a few non-conformant properties 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; (eclipselink.jar.name and .jarfile)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp;-.dir really hasn't changed at all, but there were a few uses where 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; it was a defining a pathref
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp;-.path is pretty much new old pathrefs were either .dir or .classpath
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; While I needed to implement these changes for the oracle modules for 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; critical fixes in 2.0.0, I plan on implementing these changes across 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; the board &amp;nbsp;after the branch and discussion has occurred.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Does anyone object to these standards, or have preferences other 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; than what I plan to implement? I can see .jarfile being used as the 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; standard postfix because the property can't easily be confused with 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; a static usage of a jar, but it wasn't routinely used.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Comments? (If I hear nothing from you I will assume it is assent, 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; and continue as outlined after the branch is complete.)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; -Eric
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; eclipselink-dev mailing list
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26544307&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eclipselink-dev@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; eclipselink-dev mailing list
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26544307&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eclipselink-dev@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt;&amp;gt; eclipselink-dev mailing list
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26544307&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eclipselink-dev@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt;&amp;gt; eclipselink-dev mailing list
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26544307&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eclipselink-dev@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; eclipselink-dev mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26544307&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eclipselink-dev@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;/div&gt;_______________________________________________
&lt;br&gt;eclipselink-dev mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26544307&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eclipselink-dev@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;eclipselink-dev mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26544307&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eclipselink-dev@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/EclipseLink---Dev-f26332.html&quot; embed=&quot;fixTarget[26332]&quot; target=&quot;_top&quot; &gt;EclipseLink - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Expanding--%27standards%27-for-build-files.-tp26529184p26544307.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26544249</id>
	<title>bug  294044</title>
	<published>2009-11-27T07:55:55Z</published>
	<updated>2009-11-27T07:55:55Z</updated>
	<author>
		<name>Goerler, Adrian</name>
	</author>
	<content type="html">&lt;html&gt;
&lt;head&gt;
&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=iso-8859-1&quot;&gt;
&lt;meta name=&quot;Generator&quot; content=&quot;Microsoft Exchange Server&quot;&gt;
&lt;!-- converted from rtf --&gt;

&lt;/head&gt;
&lt;body&gt;
&lt;font face=&quot;Calibri, sans-serif&quot; size=&quot;2&quot;&gt;
&lt;div&gt;Hi,&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;I have tested this patch &lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&lt;a href=&quot;https://bugs.eclipse.org/bugs/show_bug.cgi?id=294044&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;&lt;font color=&quot;#0000FF&quot;&gt;&lt;u&gt;https://bugs.eclipse.org/bugs/show_bug.cgi?id=294044&lt;/u&gt;&lt;/font&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;on SAP NetWeaver, where it is fine (and required). Could anyone please review it and test it on some different Server?&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;Thanks and best regards,&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;Adrian&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;===&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&lt;font face=&quot;Arial, sans-serif&quot; size=&quot;1&quot; color=&quot;#000080&quot;&gt;&lt;b&gt;Adrian Görler&lt;br&gt;

&lt;/b&gt;&lt;font color=&quot;#808080&quot;&gt;&lt;b&gt;SAP AG&lt;br&gt;

&lt;br&gt;

&lt;/b&gt;&lt;/font&gt;&lt;font color=&quot;#808080&quot;&gt;Pflichtangaben/Mandatory Disclosure Statements: &lt;/font&gt;&lt;a href=&quot;http://www.sap.com/company/legal/impressum.epx&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;&lt;u&gt;http://www.sap.com/company/legal/impressum.epx&lt;/u&gt;&lt;/a&gt;&lt;br&gt;

&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;/font&gt;
&lt;/body&gt;
&lt;/html&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;eclipselink-dev mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26544249&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eclipselink-dev@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/EclipseLink---Dev-f26332.html&quot; embed=&quot;fixTarget[26332]&quot; target=&quot;_top&quot; &gt;EclipseLink - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/bug--294044-tp26544249p26544249.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26544138</id>
	<title>Re: Expanding  'standards' for build files.</title>
	<published>2009-11-27T07:46:13Z</published>
	<updated>2009-11-27T07:46:13Z</updated>
	<author>
		<name>Eric Gwin</name>
	</author>
	<content type="html">So if you want to say use &amp;quot;junit.jar&amp;quot; as the filename, you only need to 
&lt;br&gt;redefine ${junit.jar}, if you want a different directory to hold all 
&lt;br&gt;your dependencies you only need to redefine ${external.depends.dir}, and 
&lt;br&gt;if you want to do both and use a custom named xdb-11-rel2.jar, in a 
&lt;br&gt;completely seperate location with the previous setup you could simply 
&lt;br&gt;add a redefinition of ${xdb.lib}.
&lt;br&gt;&lt;br&gt;-Eric
&lt;br&gt;&lt;br&gt;Eric Gwin wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; It doesn't. It's more like: (values are just for example...):
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; common.plugin.dir=./plugins
&lt;br&gt;&amp;gt; external.depends.dir=../external.lib
&lt;br&gt;&amp;gt; junit.jar=junit-4.5.jar
&lt;br&gt;&amp;gt; junit.lib=${external.depends.dir}/${junit.jar}
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; after testing for existence of junit.lib and others...
&lt;br&gt;&amp;gt; &amp;lt;path pathref=&amp;quot;external.compile.deps.path&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;lt;pathelement =&amp;quot;${junit.lib}/&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;lt;pathelement=&amp;quot;${jdbc.lib}&amp;quot;/&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; ...
&lt;br&gt;&amp;gt; &amp;lt;/path&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; That minimal redefinitions need to be made for jar names or dirs if 
&lt;br&gt;&amp;gt; they are customized, and jars can be grouped together, or in different 
&lt;br&gt;&amp;gt; dirs, as required by the developer/user. However, the defined location 
&lt;br&gt;&amp;gt; can still be tested for (verify it is found), before it is added to a 
&lt;br&gt;&amp;gt; classpath (which in many cases will cause errors if it doesn't exist).
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; -Eric
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Edwin Tang wrote:
&lt;br&gt;&amp;gt;&amp;gt; Hi Gordon,
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; If the proposal includes a plan to introduce &amp;lt;name&amp;gt;.dir for every 
&lt;br&gt;&amp;gt;&amp;gt; single jar file, then there are no substantial differences between 
&lt;br&gt;&amp;gt;&amp;gt; these 2 options.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt;&amp;gt; Edwin
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt;&amp;gt; From: Gordon Yorke Sent: Friday, November 27, 2009 9:34 AM
&lt;br&gt;&amp;gt;&amp;gt; To: Dev mailing list for Eclipse Persistence Services
&lt;br&gt;&amp;gt;&amp;gt; Subject: Re: [eclipselink-dev] Expanding 'standards' for build files.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I prefer Eric's proposal for &amp;lt;name&amp;gt;.jar, &amp;lt;name&amp;gt;.lib and &amp;lt;name&amp;gt;.dir
&lt;br&gt;&amp;gt;&amp;gt; --Gordon
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Edwin Tang wrote:
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Hi Eric,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; This is great initiative.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Probably, instead of &amp;lt;name&amp;gt;.jar, &amp;lt;name&amp;gt;.lib and &amp;lt;name&amp;gt;.path, it 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; could better that we have
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;lt;name&amp;gt;.dir: the location of a jar file
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;lt;name&amp;gt;.lib: a jar file name
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;lt;name&amp;gt;.path: a path element defined by &amp;lt;pathelement 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; path=&amp;quot;${&amp;lt;name&amp;gt;.dir}/${&amp;lt;name&amp;gt;.lib}&amp;quot;/&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; The benifits of this option are:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 1. Users have full flexibility to able to customize &amp;lt;name&amp;gt;.dir, 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;lt;name&amp;gt;.lib, or both for every single jar file
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 2. Avoid the difficulty to choose a sound property name - &amp;lt;name&amp;gt;.jar 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; or &amp;lt;name&amp;gt;.jarfile
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 3. Be consistent with the TopLink test/build naming conventions
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Edwin
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; From: Eric Gwin Sent: Thursday, November 26, 2009 8:06 AM
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; To: Dev mailing list for Eclipse Persistence Services
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Subject: [eclipselink-dev] Expanding 'standards' for build files.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; I'm sending this out as a notification/proposal of some additional 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; standard conventions I plan on adding to our build files after the 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; branch.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;- properties ending in .jar define jarfile names only (no path)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;- properties ending in .lib are fully qualified jars (path and 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; filename)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;- properties ending in .dir are directory paths
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;- properties ending in .path are path refid names (classpath 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; fragments)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;- targets beginning with test- are reserved for high level test 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; targets,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;and are used in test results parsing
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;- targets typically use the form &amp;lt;action&amp;gt;-&amp;lt;object&amp;gt;-&amp;lt;type&amp;gt; (ie. 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; package-bundle-zip)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Some are clarifications of standards already in place, but not well 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; publicized. However, with regard to .jar/.lib and .dir/.path there 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; is no current standard, and properties are named and used in a 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; fairly random mostly interchangeable way. There are many reasons 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; this is becoming an issue now, but here are the biggest:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;- bugs requesting the use of minimal classpaths necessitate the 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; need to individually
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;define libraries. However, the build has multiple entry 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; points so paths to those
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;libraries are relative to the entry point. So the need to 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; separate path from jar name.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;- adding individual libraries (rather than 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; eclipselink.core.depend or eclipslink.oracle.depend
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; which list them all) also creates a need to separately 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; define directories and classpath subsets.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; For the most part I've tried to keep the usage most prevalent for 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; each postfix
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp;-.lib was mostly used to define full paths to jars, while .jar 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; mostly defined jar names. However,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp;there are also a few non-conformant properties 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; (eclipselink.jar.name and .jarfile)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp;-.dir really hasn't changed at all, but there were a few uses where 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; it was a defining a pathref
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp;-.path is pretty much new old pathrefs were either .dir or .classpath
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; While I needed to implement these changes for the oracle modules for 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; critical fixes in 2.0.0, I plan on implementing these changes across 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; the board &amp;nbsp;after the branch and discussion has occurred.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Does anyone object to these standards, or have preferences other 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; than what I plan to implement? I can see .jarfile being used as the 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; standard postfix because the property can't easily be confused with 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; a static usage of a jar, but it wasn't routinely used.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Comments? (If I hear nothing from you I will assume it is assent, 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; and continue as outlined after the branch is complete.)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; -Eric
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; eclipselink-dev mailing list
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26544138&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eclipselink-dev@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; eclipselink-dev mailing list
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26544138&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eclipselink-dev@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt;&amp;gt; eclipselink-dev mailing list
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26544138&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eclipselink-dev@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt;&amp;gt; eclipselink-dev mailing list
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26544138&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eclipselink-dev@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; eclipselink-dev mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26544138&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eclipselink-dev@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;/div&gt;_______________________________________________
&lt;br&gt;eclipselink-dev mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26544138&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eclipselink-dev@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/EclipseLink---Dev-f26332.html&quot; embed=&quot;fixTarget[26332]&quot; target=&quot;_top&quot; &gt;EclipseLink - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Expanding--%27standards%27-for-build-files.-tp26529184p26544138.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26544068</id>
	<title>Re: Expanding  'standards' for build files.</title>
	<published>2009-11-27T07:40:45Z</published>
	<updated>2009-11-27T07:40:45Z</updated>
	<author>
		<name>Eric Gwin</name>
	</author>
	<content type="html">It doesn't. It's more like: (values are just for example...):
&lt;br&gt;&lt;br&gt;common.plugin.dir=./plugins
&lt;br&gt;external.depends.dir=../external.lib
&lt;br&gt;junit.jar=junit-4.5.jar
&lt;br&gt;junit.lib=${external.depends.dir}/${junit.jar}
&lt;br&gt;&lt;br&gt;&lt;br&gt;after testing for existence of junit.lib and others...
&lt;br&gt;&amp;lt;path pathref=&amp;quot;external.compile.deps.path&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;pathelement =&amp;quot;${junit.lib}/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;pathelement=&amp;quot;${jdbc.lib}&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;...
&lt;br&gt;&amp;lt;/path&amp;gt;
&lt;br&gt;&lt;br&gt;That minimal redefinitions need to be made for jar names or dirs if they 
&lt;br&gt;are customized, and jars can be grouped together, or in different dirs, 
&lt;br&gt;as required by the developer/user. However, the defined location can 
&lt;br&gt;still be tested for (verify it is found), before it is added to a 
&lt;br&gt;classpath (which in many cases will cause errors if it doesn't exist).
&lt;br&gt;&lt;br&gt;-Eric
&lt;br&gt;&lt;br&gt;Edwin Tang wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi Gordon,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; If the proposal includes a plan to introduce &amp;lt;name&amp;gt;.dir for every single jar file, then there are no substantial differences between these 2 options.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt; Edwin
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt; From: Gordon Yorke 
&lt;br&gt;&amp;gt; Sent: Friday, November 27, 2009 9:34 AM
&lt;br&gt;&amp;gt; To: Dev mailing list for Eclipse Persistence Services
&lt;br&gt;&amp;gt; Subject: Re: [eclipselink-dev] Expanding 'standards' for build files.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I prefer Eric's proposal for &amp;lt;name&amp;gt;.jar, &amp;lt;name&amp;gt;.lib and &amp;lt;name&amp;gt;.dir
&lt;br&gt;&amp;gt; --Gordon
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Edwin Tang wrote:
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt; Hi Eric,
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; This is great initiative.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Probably, instead of &amp;lt;name&amp;gt;.jar, &amp;lt;name&amp;gt;.lib and &amp;lt;name&amp;gt;.path, it could better that we have
&lt;br&gt;&amp;gt;&amp;gt; &amp;lt;name&amp;gt;.dir: the location of a jar file
&lt;br&gt;&amp;gt;&amp;gt; &amp;lt;name&amp;gt;.lib: a jar file name
&lt;br&gt;&amp;gt;&amp;gt; &amp;lt;name&amp;gt;.path: a path element defined by &amp;lt;pathelement path=&amp;quot;${&amp;lt;name&amp;gt;.dir}/${&amp;lt;name&amp;gt;.lib}&amp;quot;/&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; The benifits of this option are:
&lt;br&gt;&amp;gt;&amp;gt; 1. Users have full flexibility to able to customize &amp;lt;name&amp;gt;.dir, &amp;lt;name&amp;gt;.lib, or both for every single jar file
&lt;br&gt;&amp;gt;&amp;gt; 2. Avoid the difficulty to choose a sound property name - &amp;lt;name&amp;gt;.jar or &amp;lt;name&amp;gt;.jarfile
&lt;br&gt;&amp;gt;&amp;gt; 3. Be consistent with the TopLink test/build naming conventions
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt;&amp;gt; Edwin
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt;&amp;gt; From: Eric Gwin 
&lt;br&gt;&amp;gt;&amp;gt; Sent: Thursday, November 26, 2009 8:06 AM
&lt;br&gt;&amp;gt;&amp;gt; To: Dev mailing list for Eclipse Persistence Services
&lt;br&gt;&amp;gt;&amp;gt; Subject: [eclipselink-dev] Expanding 'standards' for build files.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I'm sending this out as a notification/proposal of some additional 
&lt;br&gt;&amp;gt;&amp;gt; standard conventions I plan on adding to our build files after the branch.
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;- properties ending in .jar define jarfile names only (no path)
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;- properties ending in .lib are fully qualified jars (path and 
&lt;br&gt;&amp;gt;&amp;gt; filename)
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;- properties ending in .dir are directory paths
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;- properties ending in .path are path refid names (classpath fragments)
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;- targets beginning with test- are reserved for high level test 
&lt;br&gt;&amp;gt;&amp;gt; targets,
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;and are used in test results parsing
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;- targets typically use the form &amp;lt;action&amp;gt;-&amp;lt;object&amp;gt;-&amp;lt;type&amp;gt; (ie. 
&lt;br&gt;&amp;gt;&amp;gt; package-bundle-zip)
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Some are clarifications of standards already in place, but not well 
&lt;br&gt;&amp;gt;&amp;gt; publicized. However, with regard to .jar/.lib and .dir/.path there is no 
&lt;br&gt;&amp;gt;&amp;gt; current standard, and properties are named and used in a fairly random 
&lt;br&gt;&amp;gt;&amp;gt; mostly interchangeable way. There are many reasons this is becoming an 
&lt;br&gt;&amp;gt;&amp;gt; issue now, but here are the biggest:
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;- bugs requesting the use of minimal classpaths necessitate the 
&lt;br&gt;&amp;gt;&amp;gt; need to individually
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;define libraries. However, the build has multiple entry points so 
&lt;br&gt;&amp;gt;&amp;gt; paths to those
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;libraries are relative to the entry point. So the need to 
&lt;br&gt;&amp;gt;&amp;gt; separate path from jar name.
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;- adding individual libraries (rather than eclipselink.core.depend 
&lt;br&gt;&amp;gt;&amp;gt; or eclipslink.oracle.depend
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; which list them all) also creates a need to separately define 
&lt;br&gt;&amp;gt;&amp;gt; directories and classpath subsets.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; For the most part I've tried to keep the usage most prevalent for each 
&lt;br&gt;&amp;gt;&amp;gt; postfix
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp;-.lib was mostly used to define full paths to jars, while .jar mostly 
&lt;br&gt;&amp;gt;&amp;gt; defined jar names. However,
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp;there are also a few non-conformant properties (eclipselink.jar.name 
&lt;br&gt;&amp;gt;&amp;gt; and .jarfile)
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp;-.dir really hasn't changed at all, but there were a few uses where it 
&lt;br&gt;&amp;gt;&amp;gt; was a defining a pathref
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp;-.path is pretty much new old pathrefs were either .dir or .classpath
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; While I needed to implement these changes for the oracle modules for 
&lt;br&gt;&amp;gt;&amp;gt; critical fixes in 2.0.0, I plan on implementing these changes across the 
&lt;br&gt;&amp;gt;&amp;gt; board &amp;nbsp;after the branch and discussion has occurred.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Does anyone object to these standards, or have preferences other than 
&lt;br&gt;&amp;gt;&amp;gt; what I plan to implement? I can see .jarfile being used as the standard 
&lt;br&gt;&amp;gt;&amp;gt; postfix because the property can't easily be confused with a static 
&lt;br&gt;&amp;gt;&amp;gt; usage of a jar, but it wasn't routinely used.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Comments? (If I hear nothing from you I will assume it is assent, and 
&lt;br&gt;&amp;gt;&amp;gt; continue as outlined after the branch is complete.)
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; -Eric
&lt;br&gt;&amp;gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt;&amp;gt; eclipselink-dev mailing list
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26544068&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eclipselink-dev@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt;&amp;gt; eclipselink-dev mailing list
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26544068&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eclipselink-dev@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; eclipselink-dev mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26544068&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eclipselink-dev@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&lt;/a&gt;&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; eclipselink-dev mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26544068&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eclipselink-dev@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;/div&gt;_______________________________________________
&lt;br&gt;eclipselink-dev mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26544068&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eclipselink-dev@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/EclipseLink---Dev-f26332.html&quot; embed=&quot;fixTarget[26332]&quot; target=&quot;_top&quot; &gt;EclipseLink - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Expanding--%27standards%27-for-build-files.-tp26529184p26544068.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26543905</id>
	<title>Re: Moxy &amp; JPA with Eclipselink</title>
	<published>2009-11-27T07:27:33Z</published>
	<updated>2009-11-27T07:27:33Z</updated>
	<author>
		<name>Adam Stroud</name>
	</author>
	<content type="html">Blaise:
&lt;br&gt;&lt;br&gt;Not just yet, but I would expect those to be useful later on. &amp;nbsp;I will
&lt;br&gt;keep you posted.
&lt;br&gt;&lt;br&gt;Adam
&lt;br&gt;&lt;br&gt;Blaise Doughan wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi Adam,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Good to hear. &amp;nbsp;I have just updated the JPA/JAXB example (see link below)
&lt;br&gt;&amp;gt; to include the bidirectional OXM relationship mapping support we've
&lt;br&gt;&amp;gt; added to EclipseLink 2.0. &amp;nbsp;Next I will add updates for composite keys
&lt;br&gt;&amp;gt; and embedded key classes, are you using either of these concepts in your
&lt;br&gt;&amp;gt; model?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://wiki.eclipse.org/EclipseLink/Examples/MOXy/JPA&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://wiki.eclipse.org/EclipseLink/Examples/MOXy/JPA&lt;/a&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; -Blaise
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Adam Stroud wrote:
&lt;br&gt;&amp;gt;&amp;gt; Blaise:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I actually just stumbled upon the schema generation functionality. &amp;nbsp;I
&lt;br&gt;&amp;gt;&amp;gt; will give that a try and see how far I get.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Thanks
&lt;br&gt;&amp;gt;&amp;gt; Adam
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Blaise Doughan wrote:
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Hi Adam,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; You are correct, the JAXB annotations will allow you to map the JPA
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; entity classes to XML. &amp;nbsp;This will require you only have one Java model.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; You can generate an XML schema from annotated Java classes using the
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; generateSchema(SchemaOutputResolver) method on JAXBContext:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; * &lt;a href=&quot;http://java.sun.com/javase/6/docs/api/javax/xml/bind/JAXBContext.html#generateSchema(javax.xml.bind.SchemaOutputResolver&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://java.sun.com/javase/6/docs/api/javax/xml/bind/JAXBContext.html#generateSchema(javax.xml.bind.SchemaOutputResolver&lt;/a&gt;)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Using EclipseLink 2.0 JAXB you will also be able to:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; * Map bidirectional relationships using @XmlInverseReferece
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; * Use composite keys in key based XML relationships
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; * Map JPA entites with embedded key classes
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; * Use the @XmlID annotation on non-String fields and Properties
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; -Blaise
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Adam Stroud wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Blaise:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Thanks for the reply. &amp;nbsp;I have not come across any issues yet as I have
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; just started development. &amp;nbsp;I am developing a RESTful web service that
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; will receive XML that will need to be mapped to JPA entities that will
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; be persisted. &amp;nbsp;My initial thought was to create an XSD to define the web
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; service traffic, and run JAXB over this to create Java classes. &amp;nbsp;I would
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; then define the entities to be persisted and manually write the code to
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; convert the XML to the entities. &amp;nbsp;This just didnt feel right so I
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; started to see if there was a better way. &amp;nbsp;It seems that the JAXB
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; annotations might be what I am looking for. &amp;nbsp;From what I have seen thus
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; far, I will be able to both marshal and unmarshal the XML into my
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; entities. &amp;nbsp;The only feature I would still like to have is the XSD. &amp;nbsp;It
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; does not look like I can generate an XSD from JAXB annotated classes.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; So, if I want the XSD it looks like I need to maintain multiple models.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp;Any other ideas?
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Thanks
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Adam
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Blaise Doughan wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Hi Adam,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; My apologies for not getting back to the thread. &amp;nbsp;If you let me know the
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; issues you are encountering I will help you out.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; You should be able to do this in one model. &amp;nbsp;Below is a link to an
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; example I am working on to do just what you are describing with the
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; EclipseLink 2.0 APIs:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; * &lt;a href=&quot;http://wiki.eclipse.org/EclipseLink/Examples/MOXy/JPA&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://wiki.eclipse.org/EclipseLink/Examples/MOXy/JPA&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; It is still a work in progress, some other things you will find useful:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; * /*Bidirectional Relationship Support*/
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; Today we will be checking in an XMLInvereseReferenceMapping, this
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; mapping will allow you map back pointers.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; * /*Composite Key Support*/
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; EclipseLink 2.0 now supports composite keys on all the key based
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; mappings. &amp;nbsp;I still need to update the example with this.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; -Blaise
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Adam Stroud wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; All:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; I am developing an application that uses Eclipselink both JAXB (Moxy)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; and JPA. &amp;nbsp;My question is what is the best way to go from my current
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; data model to entities and XML without maintaining three different
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; models. &amp;nbsp;I saw an earlier post to the mailing list here -&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://dev.eclipse.org/mhonarc/lists/eclipselink-users/msg03473.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://dev.eclipse.org/mhonarc/lists/eclipselink-users/msg03473.html&lt;/a&gt;,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; but it does not look like the examples referenced in the reply were
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; posted to the list. &amp;nbsp;Any input/guidance would be appreciated.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Thanks
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Adam
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; eclipselink-users mailing list
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26543905&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eclipselink-users@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;https://dev.eclipse.org/mailman/listinfo/eclipselink-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://dev.eclipse.org/mailman/listinfo/eclipselink-users&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; 
&lt;/div&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;eclipselink-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26543905&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eclipselink-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://dev.eclipse.org/mailman/listinfo/eclipselink-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://dev.eclipse.org/mailman/listinfo/eclipselink-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/EclipseLink---Users-f26658.html&quot; embed=&quot;fixTarget[26658]&quot; target=&quot;_top&quot; &gt;EclipseLink - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Moxy---JPA-with-Eclipselink-tp26503736p26543905.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26543871</id>
	<title>Re: Moxy &amp; JPA with Eclipselink</title>
	<published>2009-11-27T07:23:04Z</published>
	<updated>2009-11-27T07:23:04Z</updated>
	<author>
		<name>Blaise Doughan</name>
	</author>
	<content type="html">&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD HTML 4.01 Transitional//EN&quot;&gt;
&lt;html&gt;
&lt;head&gt;
  &lt;meta content=&quot;text/html;charset=ISO-8859-1&quot; http-equiv=&quot;Content-Type&quot;&gt;
&lt;/head&gt;
&lt;body bgcolor=&quot;#ffffff&quot; text=&quot;#000000&quot;&gt;
Hi Adam,&lt;br&gt;
&lt;br&gt;
Good to hear.&amp;nbsp; I have just updated the JPA/JAXB example (see link
below) to include the bidirectional OXM relationship mapping support
we've added to EclipseLink 2.0.&amp;nbsp; Next I will add updates for composite
keys and embedded key classes, are you using either of these concepts
in your model?&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;a class=&quot;moz-txt-link-freetext&quot; href=&quot;http://wiki.eclipse.org/EclipseLink/Examples/MOXy/JPA&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://wiki.eclipse.org/EclipseLink/Examples/MOXy/JPA&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
-Blaise&lt;br&gt;
&lt;br&gt;
Adam Stroud wrote:
&lt;blockquote cite=&quot;mid:4B0FEDD5.1070705@gmail.com&quot; type=&quot;cite&quot;&gt;
  &lt;pre wrap=&quot;&quot;&gt;Blaise:

I actually just stumbled upon the schema generation functionality.  I
will give that a try and see how far I get.

Thanks
Adam

Blaise Doughan wrote:
  &lt;/pre&gt;
  &lt;blockquote type=&quot;cite&quot;&gt;
    &lt;pre wrap=&quot;&quot;&gt;Hi Adam,

You are correct, the JAXB annotations will allow you to map the JPA
entity classes to XML.  This will require you only have one Java model.

You can generate an XML schema from annotated Java classes using the
generateSchema(SchemaOutputResolver) method on JAXBContext:

    * &lt;a class=&quot;moz-txt-link-freetext&quot; href=&quot;http://java.sun.com/javase/6/docs/api/javax/xml/bind/JAXBContext.html#generateSchema(javax.xml.bind.SchemaOutputResolver)&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://java.sun.com/javase/6/docs/api/javax/xml/bind/JAXBContext.html#generateSchema(javax.xml.bind.SchemaOutputResolver)&lt;/a&gt;

Using EclipseLink 2.0 JAXB you will also be able to:

    * Map bidirectional relationships using @XmlInverseReferece
    * Use composite keys in key based XML relationships
    * Map JPA entites with embedded key classes
    * Use the @XmlID annotation on non-String fields and Properties


-Blaise

Adam Stroud wrote:
    &lt;/pre&gt;
    &lt;blockquote type=&quot;cite&quot;&gt;
      &lt;pre wrap=&quot;&quot;&gt;Blaise:

Thanks for the reply.  I have not come across any issues yet as I have
just started development.  I am developing a RESTful web service that
will receive XML that will need to be mapped to JPA entities that will
be persisted.  My initial thought was to create an XSD to define the web
service traffic, and run JAXB over this to create Java classes.  I would
then define the entities to be persisted and manually write the code to
convert the XML to the entities.  This just didnt feel right so I
started to see if there was a better way.  It seems that the JAXB
annotations might be what I am looking for.  From what I have seen thus
far, I will be able to both marshal and unmarshal the XML into my
entities.  The only feature I would still like to have is the XSD.  It
does not look like I can generate an XSD from JAXB annotated classes.
So, if I want the XSD it looks like I need to maintain multiple models.
 Any other ideas?

Thanks
Adam

Blaise Doughan wrote:
  
      &lt;/pre&gt;
      &lt;blockquote type=&quot;cite&quot;&gt;
        &lt;pre wrap=&quot;&quot;&gt;Hi Adam,

My apologies for not getting back to the thread.  If you let me know the
issues you are encountering I will help you out.

You should be able to do this in one model.  Below is a link to an
example I am working on to do just what you are describing with the
EclipseLink 2.0 APIs:

    * &lt;a class=&quot;moz-txt-link-freetext&quot; href=&quot;http://wiki.eclipse.org/EclipseLink/Examples/MOXy/JPA&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://wiki.eclipse.org/EclipseLink/Examples/MOXy/JPA&lt;/a&gt;

It is still a work in progress, some other things you will find useful:

    * /*Bidirectional Relationship Support*/
      Today we will be checking in an XMLInvereseReferenceMapping, this
      mapping will allow you map back pointers.
    * /*Composite Key Support*/
      EclipseLink 2.0 now supports composite keys on all the key based
      mappings.  I still need to update the example with this.

-Blaise

Adam Stroud wrote:
    
        &lt;/pre&gt;
        &lt;blockquote type=&quot;cite&quot;&gt;
          &lt;pre wrap=&quot;&quot;&gt;All:

I am developing an application that uses Eclipselink both JAXB (Moxy)
and JPA.  My question is what is the best way to go from my current
data model to entities and XML without maintaining three different
models.  I saw an earlier post to the mailing list here -&amp;gt;
&lt;a class=&quot;moz-txt-link-freetext&quot; href=&quot;http://dev.eclipse.org/mhonarc/lists/eclipselink-users/msg03473.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://dev.eclipse.org/mhonarc/lists/eclipselink-users/msg03473.html&lt;/a&gt;,
but it does not look like the examples referenced in the reply were
posted to the list.  Any input/guidance would be appreciated.

Thanks
Adam
_______________________________________________
eclipselink-users mailing list
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26543871&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eclipselink-users@...&lt;/a&gt;
&lt;a class=&quot;moz-txt-link-freetext&quot; href=&quot;https://dev.eclipse.org/mailman/listinfo/eclipselink-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://dev.eclipse.org/mailman/listinfo/eclipselink-users&lt;/a&gt;
  
      
          &lt;/pre&gt;
        &lt;/blockquote&gt;
      &lt;/blockquote&gt;
      &lt;pre wrap=&quot;&quot;&gt;  
      &lt;/pre&gt;
    &lt;/blockquote&gt;
  &lt;/blockquote&gt;
  &lt;pre wrap=&quot;&quot;&gt;&lt;!----&gt;
  &lt;/pre&gt;
&lt;/blockquote&gt;
&lt;/body&gt;
&lt;/html&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;eclipselink-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26543871&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eclipselink-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://dev.eclipse.org/mailman/listinfo/eclipselink-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://dev.eclipse.org/mailman/listinfo/eclipselink-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/EclipseLink---Users-f26658.html&quot; embed=&quot;fixTarget[26658]&quot; target=&quot;_top&quot; &gt;EclipseLink - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Moxy---JPA-with-Eclipselink-tp26503736p26543871.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26543788</id>
	<title>Re: Moxy &amp; JPA with Eclipselink</title>
	<published>2009-11-27T07:18:45Z</published>
	<updated>2009-11-27T07:18:45Z</updated>
	<author>
		<name>Adam Stroud</name>
	</author>
	<content type="html">Blaise:
&lt;br&gt;&lt;br&gt;I actually just stumbled upon the schema generation functionality. &amp;nbsp;I
&lt;br&gt;will give that a try and see how far I get.
&lt;br&gt;&lt;br&gt;Thanks
&lt;br&gt;Adam
&lt;br&gt;&lt;br&gt;Blaise Doughan wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi Adam,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; You are correct, the JAXB annotations will allow you to map the JPA
&lt;br&gt;&amp;gt; entity classes to XML. &amp;nbsp;This will require you only have one Java model.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; You can generate an XML schema from annotated Java classes using the
&lt;br&gt;&amp;gt; generateSchema(SchemaOutputResolver) method on JAXBContext:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; * &lt;a href=&quot;http://java.sun.com/javase/6/docs/api/javax/xml/bind/JAXBContext.html#generateSchema(javax.xml.bind.SchemaOutputResolver&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://java.sun.com/javase/6/docs/api/javax/xml/bind/JAXBContext.html#generateSchema(javax.xml.bind.SchemaOutputResolver&lt;/a&gt;)
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Using EclipseLink 2.0 JAXB you will also be able to:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; * Map bidirectional relationships using @XmlInverseReferece
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; * Use composite keys in key based XML relationships
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; * Map JPA entites with embedded key classes
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; * Use the @XmlID annotation on non-String fields and Properties
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; -Blaise
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Adam Stroud wrote:
&lt;br&gt;&amp;gt;&amp;gt; Blaise:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Thanks for the reply. &amp;nbsp;I have not come across any issues yet as I have
&lt;br&gt;&amp;gt;&amp;gt; just started development. &amp;nbsp;I am developing a RESTful web service that
&lt;br&gt;&amp;gt;&amp;gt; will receive XML that will need to be mapped to JPA entities that will
&lt;br&gt;&amp;gt;&amp;gt; be persisted. &amp;nbsp;My initial thought was to create an XSD to define the web
&lt;br&gt;&amp;gt;&amp;gt; service traffic, and run JAXB over this to create Java classes. &amp;nbsp;I would
&lt;br&gt;&amp;gt;&amp;gt; then define the entities to be persisted and manually write the code to
&lt;br&gt;&amp;gt;&amp;gt; convert the XML to the entities. &amp;nbsp;This just didnt feel right so I
&lt;br&gt;&amp;gt;&amp;gt; started to see if there was a better way. &amp;nbsp;It seems that the JAXB
&lt;br&gt;&amp;gt;&amp;gt; annotations might be what I am looking for. &amp;nbsp;From what I have seen thus
&lt;br&gt;&amp;gt;&amp;gt; far, I will be able to both marshal and unmarshal the XML into my
&lt;br&gt;&amp;gt;&amp;gt; entities. &amp;nbsp;The only feature I would still like to have is the XSD. &amp;nbsp;It
&lt;br&gt;&amp;gt;&amp;gt; does not look like I can generate an XSD from JAXB annotated classes.
&lt;br&gt;&amp;gt;&amp;gt; So, if I want the XSD it looks like I need to maintain multiple models.
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp;Any other ideas?
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Thanks
&lt;br&gt;&amp;gt;&amp;gt; Adam
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Blaise Doughan wrote:
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Hi Adam,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; My apologies for not getting back to the thread. &amp;nbsp;If you let me know the
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; issues you are encountering I will help you out.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; You should be able to do this in one model. &amp;nbsp;Below is a link to an
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; example I am working on to do just what you are describing with the
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; EclipseLink 2.0 APIs:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; * &lt;a href=&quot;http://wiki.eclipse.org/EclipseLink/Examples/MOXy/JPA&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://wiki.eclipse.org/EclipseLink/Examples/MOXy/JPA&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; It is still a work in progress, some other things you will find useful:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; * /*Bidirectional Relationship Support*/
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; Today we will be checking in an XMLInvereseReferenceMapping, this
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; mapping will allow you map back pointers.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; * /*Composite Key Support*/
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; EclipseLink 2.0 now supports composite keys on all the key based
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; mappings. &amp;nbsp;I still need to update the example with this.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; -Blaise
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Adam Stroud wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; All:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; I am developing an application that uses Eclipselink both JAXB (Moxy)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; and JPA. &amp;nbsp;My question is what is the best way to go from my current
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; data model to entities and XML without maintaining three different
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; models. &amp;nbsp;I saw an earlier post to the mailing list here -&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://dev.eclipse.org/mhonarc/lists/eclipselink-users/msg03473.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://dev.eclipse.org/mhonarc/lists/eclipselink-users/msg03473.html&lt;/a&gt;,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; but it does not look like the examples referenced in the reply were
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; posted to the list. &amp;nbsp;Any input/guidance would be appreciated.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Thanks
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Adam
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; eclipselink-users mailing list
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26543788&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eclipselink-users@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;https://dev.eclipse.org/mailman/listinfo/eclipselink-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://dev.eclipse.org/mailman/listinfo/eclipselink-users&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; 
&lt;/div&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;eclipselink-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26543788&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eclipselink-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://dev.eclipse.org/mailman/listinfo/eclipselink-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://dev.eclipse.org/mailman/listinfo/eclipselink-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/EclipseLink---Users-f26658.html&quot; embed=&quot;fixTarget[26658]&quot; target=&quot;_top&quot; &gt;EclipseLink - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Moxy---JPA-with-Eclipselink-tp26503736p26543788.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26543960</id>
	<title>Re: Expanding  'standards' for build files.</title>
	<published>2009-11-27T07:00:25Z</published>
	<updated>2009-11-27T07:00:25Z</updated>
	<author>
		<name>Gordon Yorke-2</name>
	</author>
	<content type="html">&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD HTML 4.01 Transitional//EN&quot;&gt;
&lt;html&gt;
&lt;head&gt;
  &lt;meta content=&quot;text/html;charset=UTF-8&quot; http-equiv=&quot;Content-Type&quot;&gt;
&lt;/head&gt;
&lt;body bgcolor=&quot;#ffffff&quot; text=&quot;#000000&quot;&gt;
Perhaps Eric can clarify but I did not see that he proposed a
&amp;lt;name&amp;gt;.dir for every single jar file.&lt;br&gt;
--Gordon&lt;br&gt;
&lt;br&gt;
Edwin Tang wrote:
&lt;blockquote cite=&quot;mid:7e3bf0f6-8f3d-45be-9c51-8252dc021914@default&quot; type=&quot;cite&quot;&gt;
  &lt;pre wrap=&quot;&quot;&gt;Hi Gordon,

If the proposal includes a plan to introduce &amp;lt;name&amp;gt;.dir for every single jar file, then there are no substantial differences between these 2 options.

Thanks,
Edwin

-----Original Message-----
From: Gordon Yorke 
Sent: Friday, November 27, 2009 9:34 AM
To: Dev mailing list for Eclipse Persistence Services
Subject: Re: [eclipselink-dev] Expanding 'standards' for build files.


I prefer Eric's proposal for &amp;lt;name&amp;gt;.jar, &amp;lt;name&amp;gt;.lib and &amp;lt;name&amp;gt;.dir
--Gordon

Edwin Tang wrote:
  &lt;/pre&gt;
  &lt;blockquote type=&quot;cite&quot;&gt;
    &lt;pre wrap=&quot;&quot;&gt;Hi Eric,

This is great initiative.

Probably, instead of &amp;lt;name&amp;gt;.jar, &amp;lt;name&amp;gt;.lib and &amp;lt;name&amp;gt;.path, it could better that we have
&amp;lt;name&amp;gt;.dir: the location of a jar file
&amp;lt;name&amp;gt;.lib: a jar file name
&amp;lt;name&amp;gt;.path: a path element defined by &amp;lt;pathelement path=&quot;${&amp;lt;name&amp;gt;.dir}/${&amp;lt;name&amp;gt;.lib}&quot;/&amp;gt;

The benifits of this option are:
1. Users have full flexibility to able to customize &amp;lt;name&amp;gt;.dir, &amp;lt;name&amp;gt;.lib, or both for every single jar file
2. Avoid the difficulty to choose a sound property name - &amp;lt;name&amp;gt;.jar or &amp;lt;name&amp;gt;.jarfile
3. Be consistent with the TopLink test/build naming conventions

Thanks,
Edwin

-----Original Message-----
From: Eric Gwin 
Sent: Thursday, November 26, 2009 8:06 AM
To: Dev mailing list for Eclipse Persistence Services
Subject: [eclipselink-dev] Expanding 'standards' for build files.


Hi,

I'm sending this out as a notification/proposal of some additional 
standard conventions I plan on adding to our build files after the branch.
     - properties ending in .jar define jarfile names only (no path)
     - properties ending in .lib are fully qualified jars (path and 
filename)
     - properties ending in .dir are directory paths
     - properties ending in .path are path refid names (classpath fragments)
     - targets beginning with test- are reserved for high level test 
targets,
       and are used in test results parsing
     - targets typically use the form &amp;lt;action&amp;gt;-&amp;lt;object&amp;gt;-&amp;lt;type&amp;gt; (ie. 
package-bundle-zip)

Some are clarifications of standards already in place, but not well 
publicized. However, with regard to .jar/.lib and .dir/.path there is no 
current standard, and properties are named and used in a fairly random 
mostly interchangeable way. There are many reasons this is becoming an 
issue now, but here are the biggest:
     - bugs requesting the use of minimal classpaths necessitate the 
need to individually
       define libraries. However, the build has multiple entry points so 
paths to those
       libraries are relative to the entry point. So the need to 
separate path from jar name.
     - adding individual libraries (rather than eclipselink.core.depend 
or eclipslink.oracle.depend
        which list them all) also creates a need to separately define 
directories and classpath subsets.

For the most part I've tried to keep the usage most prevalent for each 
postfix
 -.lib was mostly used to define full paths to jars, while .jar mostly 
defined jar names. However,
   there are also a few non-conformant properties (eclipselink.jar.name 
and .jarfile)
 -.dir really hasn't changed at all, but there were a few uses where it 
was a defining a pathref
 -.path is pretty much new old pathrefs were either .dir or .classpath

While I needed to implement these changes for the oracle modules for 
critical fixes in 2.0.0, I plan on implementing these changes across the 
board  after the branch and discussion has occurred.

Does anyone object to these standards, or have preferences other than 
what I plan to implement? I can see .jarfile being used as the standard 
postfix because the property can't easily be confused with a static 
usage of a jar, but it wasn't routinely used.

Comments? (If I hear nothing from you I will assume it is assent, and 
continue as outlined after the branch is complete.)

-Eric
_______________________________________________
eclipselink-dev mailing list
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26543960&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eclipselink-dev@...&lt;/a&gt;
&lt;a class=&quot;moz-txt-link-freetext&quot; href=&quot;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&lt;/a&gt;
_______________________________________________
eclipselink-dev mailing list
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26543960&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eclipselink-dev@...&lt;/a&gt;
&lt;a class=&quot;moz-txt-link-freetext&quot; href=&quot;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&lt;/a&gt;
  
    &lt;/pre&gt;
  &lt;/blockquote&gt;
  &lt;pre wrap=&quot;&quot;&gt;&lt;!----&gt;_______________________________________________
eclipselink-dev mailing list
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26543960&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eclipselink-dev@...&lt;/a&gt;
&lt;a class=&quot;moz-txt-link-freetext&quot; href=&quot;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&lt;/a&gt;
_______________________________________________
eclipselink-dev mailing list
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26543960&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eclipselink-dev@...&lt;/a&gt;
&lt;a class=&quot;moz-txt-link-freetext&quot; href=&quot;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&lt;/a&gt;
  &lt;/pre&gt;
&lt;/blockquote&gt;
&lt;/body&gt;
&lt;/html&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;eclipselink-dev mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26543960&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eclipselink-dev@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/EclipseLink---Dev-f26332.html&quot; embed=&quot;fixTarget[26332]&quot; target=&quot;_top&quot; &gt;EclipseLink - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Expanding--%27standards%27-for-build-files.-tp26529184p26543960.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26543443</id>
	<title>Re: AW: Error in EMQueryJUnitTestSuite.testcreateNativeQueryWithSelectSQL on SAP NetWeaver</title>
	<published>2009-11-27T06:53:07Z</published>
	<updated>2009-11-27T06:53:07Z</updated>
	<author>
		<name>Kevin Yuan-2</name>
	</author>
	<content type="html">&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD HTML 4.01 Transitional//EN&quot;&gt;
&lt;html&gt;
&lt;head&gt;
  &lt;meta content=&quot;text/html;charset=ISO-8859-1&quot; http-equiv=&quot;Content-Type&quot;&gt;
&lt;/head&gt;
&lt;body bgcolor=&quot;#ffffff&quot; text=&quot;#000000&quot;&gt;
Hi Adrian,&lt;br&gt;
Actually, the fix should just like the following:&lt;br&gt;
&lt;font color=&quot;#000099&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public void
testcreateNativeQueryWithSelectSQL() throws Exception {&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EntityManager em = createEntityManager();&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; try{&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; beginTransaction(em);&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Query query1 = em.createNativeQuery(&quot;Select * FROM
CMP3_CUSTOMER&quot;);&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Collection c1 = query1.getResultList();&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; assertTrue(&quot;getResultList returned null &quot;,c1!=null );&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // this may fail with some drivers&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; int result = 0;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; try {&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; result = query1.executeUpdate();&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } catch (RuntimeException ex) {&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rollbackTransaction(em);&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;font color=&quot;#ff0000&quot;&gt;closeEntityManager(em);&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; em = createEntityManager();&lt;/font&gt; &lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; beginTransaction(em);&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // inside container need to query again inorder to
attach em&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;font color=&quot;#ff0000&quot;&gt;query1 =
em.createNativeQuery(&quot;Select * FROM CMP3_CUSTOMER&quot;);&lt;/font&gt;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Query query2 = em.createNativeQuery(&quot;INSERT INTO
CMP3_CUSTOMER (CUST_ID, NAME, CITY, CUST_VERSION) VALUES (1111, NULL,
NULL, 1)&quot;);&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Query query3 = em.createNativeQuery(&quot;DELETE FROM
CMP3_CUSTOMER WHERE (CUST_ID=1111)&quot;);&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; query2.executeUpdate();&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Collection c2 = query1.getResultList();&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; assertTrue(&quot;getResultList returned null &quot;,c2!=null );&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; query3.executeUpdate();&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Collection c3 = query1.getResultList();&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; assertTrue(&quot;getResultList returned null &quot;,c3!=null );&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; assertTrue(&quot;Native Select query run with executeUpdate
modified &quot;+result+&quot; rows &quot;, result==0 );&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; assertTrue(&quot;Native Select query gave unexpected result
after Native Insert query &quot;, c2.size()==(c1.size()+1) );&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; assertTrue(&quot;Native Select query gave unexpected result
after Native Delete query &quot;, c3.size()==c1.size() );&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }finally{&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; try{&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rollbackTransaction(em);&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; closeEntityManager(em);&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }catch(Exception ee){}&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/font&gt;&lt;br&gt;
&lt;br&gt;
And I will check in this monring, code reviewed by James.&lt;br&gt;
&lt;br&gt;
Thanks,&lt;br&gt;
Kevin&lt;br&gt;
&lt;br&gt;
Goerler, Adrian wrote:
&lt;blockquote cite=&quot;mid:A33718F64608D1479C5B2AE81DFFAD4D08B3C629C2@DEWDFECCR08.wdf.sap.corp&quot; type=&quot;cite&quot;&gt;
  &lt;pre wrap=&quot;&quot;&gt;Hi Yiping,

  &lt;/pre&gt;
  &lt;blockquote type=&quot;cite&quot;&gt;
    &lt;pre wrap=&quot;&quot;&gt;We did find the test error on other servers, but we haven't had time to fix it yet.
    &lt;/pre&gt;
  &lt;/blockquote&gt;
  &lt;pre wrap=&quot;&quot;&gt;&lt;!----&gt;
hm, this explains why we could not understand how the tests could pass on a different server :-)

Actually, the fix you are proposing does not work on NetWeaver either:

    /*
     * createNativeQuery(string) feature test
     *   tests that Query with Select SQL can be executed using getResultList() after it
     *   has run using executeUpdate()
     */
    public void testcreateNativeQueryWithSelectSQL() throws Exception {
        EntityManager em = createEntityManager();
        try{
            beginTransaction(em);
            Query query1 = em.createNativeQuery(&quot;Select * FROM CMP3_CUSTOMER&quot;);
            Query query2 = em.createNativeQuery(&quot;INSERT INTO CMP3_CUSTOMER (CUST_ID, NAME, CITY, CUST_VERSION) VALUES (1111, NULL, NULL, 1)&quot;);
            Query query3 = em.createNativeQuery(&quot;DELETE FROM CMP3_CUSTOMER WHERE (CUST_ID=1111)&quot;);

            Collection c1 = query1.getResultList();
            assertTrue(&quot;getResultList returned null &quot;,c1!=null );

            // this may fail with some drivers
            int result = 0;
            try {
                result = query1.executeUpdate();
            } catch (RuntimeException ex) {
                rollbackTransaction(em);
                closeEntityManager(em);
                em = createEntityManager();
                beginTransaction(em);
            }
        

            query2.executeUpdate();  &amp;lt;----------


Query2 is still associated with the entity manager closed by the rollback.

Actually, I think the issue is the rollback in the catch block. We can just do without it:

    /*
     * createNativeQuery(string) feature test
     *   tests that Query with Select SQL can be executed using getResultList() after it
     *   has run using executeUpdate()
     */
    public void testcreateNativeQueryWithSelectSQL() throws Exception {
        EntityManager em = createEntityManager();
        try{
            beginTransaction(em);
            Query query1 = em.createNativeQuery(&quot;Select * FROM CMP3_CUSTOMER&quot;);
            Query query2 = em.createNativeQuery(&quot;INSERT INTO CMP3_CUSTOMER (CUST_ID, NAME, CITY, CUST_VERSION) VALUES (1111, NULL, NULL, 1)&quot;);
            Query query3 = em.createNativeQuery(&quot;DELETE FROM CMP3_CUSTOMER WHERE (CUST_ID=1111)&quot;);

            Collection c1 = query1.getResultList();
            assertTrue(&quot;getResultList returned null &quot;,c1!=null );

            int result = 0;
            try {
                result = query1.executeUpdate();
            } catch (RuntimeException ex) {
                // this may fail with some drivers
            	assertTrue(&quot;transaction has been rolled back&quot;, isTransactionActive(em));
            }
        

            query2.executeUpdate();

In any case, I am opening a ticket for this issue:

&lt;a class=&quot;moz-txt-link-freetext&quot; href=&quot;https://bugs.eclipse.org/bugs/show_bug.cgi?id=296340&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://bugs.eclipse.org/bugs/show_bug.cgi?id=296340&lt;/a&gt;

-Adrian

---
Adrian G&amp;ouml;rler
SAP AG

Pflichtangaben/Mandatory Disclosure Statements: &lt;a class=&quot;moz-txt-link-freetext&quot; href=&quot;http://www.sap.com/company/legal/impressum.epx&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.sap.com/company/legal/impressum.epx&lt;/a&gt;


-----Urspr&amp;uuml;ngliche Nachricht-----
Von: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26543443&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eclipselink-dev-bounces@...&lt;/a&gt; [&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26543443&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eclipselink-dev-bounces@...&lt;/a&gt;] Im Auftrag von yiping zhao
Gesendet: Donnerstag, 26. November 2009 16:50
An: tom Ware
Cc: Dev mailing list for Eclipse Persistence Services
Betreff: Re: [eclipselink-dev] Error in EMQueryJUnitTestSuite.testcreateNativeQueryWithSelectSQL on SAP NetWeaver

Hi Tom,

We did find the test error on other servers, but we haven't had time to 
fix it yet. so the testcase needs to be fixed like:

// this may fail with some drivers
            int result = 0;
            try {
                result = query1.executeUpdate();
            } catch (RuntimeException ex) {
                rollbackTransaction(em);
                closeEntityManager(em);
                em = createEntityManager();
                beginTransaction(em);
            }

Yiping

On 11/26/2009 10:10 AM, Tom Ware wrote:
  &lt;/pre&gt;
  &lt;blockquote type=&quot;cite&quot;&gt;
    &lt;pre wrap=&quot;&quot;&gt;If the entity manager is transaction scoped, I think Sabine is right.  
The entity manager should be closed when the transaction either 
commits or rolls back.  I wonder why that is not happening on other 
servers.  (you'll notice query1.executeUpdate() is designed to fail)

-Tom

yiping zhao wrote:
    &lt;/pre&gt;
    &lt;blockquote type=&quot;cite&quot;&gt;
      &lt;pre wrap=&quot;&quot;&gt;Hi Sabine,

In the test framework, by default the entity manager is injected in 
sessionbean, it's transaction-scoped.

 &amp;gt;From the stacktrace, it looks like that there is issue when 
executing &quot;result = query1.executeUpdate();&quot;, then somehow your SAP 
NetWeaver application server closes the entity manager, after that 
you get the exception &quot;java.lang.IllegalStateException: Attempting to 
execute an operation on a closed EntityManager&quot; when executing 
&quot;query2.executeUpdate();&quot;, so this sounds like a server issue.

Yiping

On 11/26/2009 4:34 AM, Heider, Sabine wrote:
      &lt;/pre&gt;
      &lt;blockquote type=&quot;cite&quot;&gt;
        &lt;pre wrap=&quot;&quot;&gt;Hi Tom,

I'm not really familiar with the details of test framework either, 
but I guess the entity manager is taken from the TestRunnerBean:

@Stateless(name=&quot;TestRunner&quot;, mappedName=&quot;TestRunner&quot;)
@Remote(TestRunner.class)
@TransactionManagement(TransactionManagementType.BEAN)
public class TestRunnerBean implements TestRunner {
        /** The entity manager for the test is injected and passed 
to the test server platform. */
    @PersistenceContext
    private EntityManager entityManager;

    /** The entity manager factory for the test is injected and 
passed to the test server platform. */
    @PersistenceUnit
    private EntityManagerFactory entityManagerFactory;

So yes, it is transaction-scoped.
Best regards,
Sabine

-----Original Message-----
From: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26543443&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eclipselink-dev-bounces@...&lt;/a&gt; 
[&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26543443&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eclipselink-dev-bounces@...&lt;/a&gt;] On Behalf Of Tom Ware
Sent: Mittwoch, 25. November 2009 14:07
To: Dev mailing list for Eclipse Persistence Services
Subject: Re: [eclipselink-dev] Error in 
EMQueryJUnitTestSuite.testcreateNativeQueryWithSelectSQL on SAP 
NetWeaver

Hi Sabine,

   I am not familiar with how the entity manager for the tests are 
created.  The part of the spec you are referring to is for 
Transaction-scoped entity managers.   Is the entity manager used in 
this test created in such a way that it will be transaction-scoped 
on all servers?

-Tom

Heider, Sabine wrote:
 
        &lt;/pre&gt;
        &lt;blockquote type=&quot;cite&quot;&gt;
          &lt;pre wrap=&quot;&quot;&gt;Hi,
 
I'd like to get your opinion on an error I get when running the JPA 
server tests inside an SAP NetWeaver application server (stack 
shortened, executed on current trunk):
 
java.lang.IllegalStateException: Attempting to execute an operation 
on a closed EntityManager.
at 
org.eclipse.persistence.internal.jpa.EntityManagerImpl.verifyOpen(EntityManagerImpl.java:1516) 

at 
org.eclipse.persistence.internal.jpa.EJBQueryImpl.executeUpdate(EJBQueryImpl.java:492) 

at 
org.eclipse.persistence.testing.tests.jpa.relationships.EMQueryJUnitTestSuite.testcreateNativeQueryWithSelectSQL(EMQueryJUnitTestSuite.java:121) 

at 
org.eclipse.persistence.testing.framework.junit.JUnitTestCase.runBareServer(JUnitTestCase.java:463) 

at 
org.eclipse.persistence.testing.framework.server.TestRunnerBean.runTest(TestRunnerBean.java:87) 

 
I run the test against a MySQL database. The MySQL driver throws an 
SQLException in EMQueryJUnitTestSuite line 114: Can not issue 
executeUpdate() for SELECTs.
Consequently, I end up in the catch block where the current 
transaction is rolled back.
 
Chapter 7.9.1 of the JPA specification says:
&quot;After the JTA transaction has completed (either by transaction 
commit or rollback), The container
closes the entity manager by calling EntityManager.close.&quot;
 
Apparently, this is what the JPA container in NetWeaver does. With 
the closed entity manager, however, query2 becomes unusable.
 
In my opinion, it's an error of the test rather than of the JPA 
container, but I might be wrong. What do you think?
 
Thanks and best regards,
Sabine
 
*Sabine Heider
**SAP AG

*Pflichtangaben/Mandatory Disclosure Statements:
_&lt;a class=&quot;moz-txt-link-freetext&quot; href=&quot;http://www.sap.com/company/legal/impressum.epx_&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.sap.com/company/legal/impressum.epx_&lt;/a&gt;
 
 
 


------------------------------------------------------------------------ 


_______________________________________________
eclipselink-dev mailing list
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26543443&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eclipselink-dev@...&lt;/a&gt;
&lt;a class=&quot;moz-txt-link-freetext&quot; href=&quot;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&lt;/a&gt;
    
          &lt;/pre&gt;
        &lt;/blockquote&gt;
        &lt;pre wrap=&quot;&quot;&gt;_______________________________________________
eclipselink-dev mailing list
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26543443&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eclipselink-dev@...&lt;/a&gt;
&lt;a class=&quot;moz-txt-link-freetext&quot; href=&quot;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&lt;/a&gt;
_______________________________________________
eclipselink-dev mailing list
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26543443&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eclipselink-dev@...&lt;/a&gt;
&lt;a class=&quot;moz-txt-link-freetext&quot; href=&quot;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&lt;/a&gt;
  
        &lt;/pre&gt;
      &lt;/blockquote&gt;
      &lt;pre wrap=&quot;&quot;&gt;------------------------------------------------------------------------

_______________________________________________
eclipselink-dev mailing list
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26543443&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eclipselink-dev@...&lt;/a&gt;
&lt;a class=&quot;moz-txt-link-freetext&quot; href=&quot;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&lt;/a&gt;
      &lt;/pre&gt;
    &lt;/blockquote&gt;
    &lt;pre wrap=&quot;&quot;&gt;_______________________________________________
eclipselink-dev mailing list
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26543443&amp;i=8&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eclipselink-dev@...&lt;/a&gt;
&lt;a class=&quot;moz-txt-link-freetext&quot; href=&quot;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&lt;/a&gt;
    &lt;/pre&gt;
  &lt;/blockquote&gt;
  &lt;pre wrap=&quot;&quot;&gt;&lt;!----&gt;_______________________________________________
eclipselink-dev mailing list
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26543443&amp;i=9&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eclipselink-dev@...&lt;/a&gt;
&lt;a class=&quot;moz-txt-link-freetext&quot; href=&quot;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&lt;/a&gt;
_______________________________________________
eclipselink-dev mailing list
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26543443&amp;i=10&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eclipselink-dev@...&lt;/a&gt;
&lt;a class=&quot;moz-txt-link-freetext&quot; href=&quot;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&lt;/a&gt;
  &lt;/pre&gt;
&lt;/blockquote&gt;
&lt;br&gt;
&lt;/body&gt;
&lt;/html&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;eclipselink-dev mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26543443&amp;i=11&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eclipselink-dev@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/EclipseLink---Dev-f26332.html&quot; embed=&quot;fixTarget[26332]&quot; target=&quot;_top&quot; &gt;EclipseLink - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Error-in-EMQueryJUnitTestSuite.testcreateNativeQueryWithSelectSQL-on-SAP-NetWeaver-tp26512010p26543443.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26543440</id>
	<title>RE: Expanding  'standards' for build files.</title>
	<published>2009-11-27T06:48:11Z</published>
	<updated>2009-11-27T06:48:11Z</updated>
	<author>
		<name>Edwin Tang</name>
	</author>
	<content type="html">Hi Gordon,
&lt;br&gt;&lt;br&gt;If the proposal includes a plan to introduce &amp;lt;name&amp;gt;.dir for every single jar file, then there are no substantial differences between these 2 options.
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;Edwin
&lt;br&gt;&lt;br&gt;-----Original Message-----
&lt;br&gt;From: Gordon Yorke 
&lt;br&gt;Sent: Friday, November 27, 2009 9:34 AM
&lt;br&gt;To: Dev mailing list for Eclipse Persistence Services
&lt;br&gt;Subject: Re: [eclipselink-dev] Expanding 'standards' for build files.
&lt;br&gt;&lt;br&gt;&lt;br&gt;I prefer Eric's proposal for &amp;lt;name&amp;gt;.jar, &amp;lt;name&amp;gt;.lib and &amp;lt;name&amp;gt;.dir
&lt;br&gt;--Gordon
&lt;br&gt;&lt;br&gt;Edwin Tang wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi Eric,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; This is great initiative.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Probably, instead of &amp;lt;name&amp;gt;.jar, &amp;lt;name&amp;gt;.lib and &amp;lt;name&amp;gt;.path, it could better that we have
&lt;br&gt;&amp;gt; &amp;lt;name&amp;gt;.dir: the location of a jar file
&lt;br&gt;&amp;gt; &amp;lt;name&amp;gt;.lib: a jar file name
&lt;br&gt;&amp;gt; &amp;lt;name&amp;gt;.path: a path element defined by &amp;lt;pathelement path=&amp;quot;${&amp;lt;name&amp;gt;.dir}/${&amp;lt;name&amp;gt;.lib}&amp;quot;/&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The benifits of this option are:
&lt;br&gt;&amp;gt; 1. Users have full flexibility to able to customize &amp;lt;name&amp;gt;.dir, &amp;lt;name&amp;gt;.lib, or both for every single jar file
&lt;br&gt;&amp;gt; 2. Avoid the difficulty to choose a sound property name - &amp;lt;name&amp;gt;.jar or &amp;lt;name&amp;gt;.jarfile
&lt;br&gt;&amp;gt; 3. Be consistent with the TopLink test/build naming conventions
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt; Edwin
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt; From: Eric Gwin 
&lt;br&gt;&amp;gt; Sent: Thursday, November 26, 2009 8:06 AM
&lt;br&gt;&amp;gt; To: Dev mailing list for Eclipse Persistence Services
&lt;br&gt;&amp;gt; Subject: [eclipselink-dev] Expanding 'standards' for build files.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I'm sending this out as a notification/proposal of some additional 
&lt;br&gt;&amp;gt; standard conventions I plan on adding to our build files after the branch.
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;- properties ending in .jar define jarfile names only (no path)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;- properties ending in .lib are fully qualified jars (path and 
&lt;br&gt;&amp;gt; filename)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;- properties ending in .dir are directory paths
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;- properties ending in .path are path refid names (classpath fragments)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;- targets beginning with test- are reserved for high level test 
&lt;br&gt;&amp;gt; targets,
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;and are used in test results parsing
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;- targets typically use the form &amp;lt;action&amp;gt;-&amp;lt;object&amp;gt;-&amp;lt;type&amp;gt; (ie. 
&lt;br&gt;&amp;gt; package-bundle-zip)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Some are clarifications of standards already in place, but not well 
&lt;br&gt;&amp;gt; publicized. However, with regard to .jar/.lib and .dir/.path there is no 
&lt;br&gt;&amp;gt; current standard, and properties are named and used in a fairly random 
&lt;br&gt;&amp;gt; mostly interchangeable way. There are many reasons this is becoming an 
&lt;br&gt;&amp;gt; issue now, but here are the biggest:
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;- bugs requesting the use of minimal classpaths necessitate the 
&lt;br&gt;&amp;gt; need to individually
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;define libraries. However, the build has multiple entry points so 
&lt;br&gt;&amp;gt; paths to those
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;libraries are relative to the entry point. So the need to 
&lt;br&gt;&amp;gt; separate path from jar name.
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;- adding individual libraries (rather than eclipselink.core.depend 
&lt;br&gt;&amp;gt; or eclipslink.oracle.depend
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; which list them all) also creates a need to separately define 
&lt;br&gt;&amp;gt; directories and classpath subsets.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; For the most part I've tried to keep the usage most prevalent for each 
&lt;br&gt;&amp;gt; postfix
&lt;br&gt;&amp;gt; &amp;nbsp;-.lib was mostly used to define full paths to jars, while .jar mostly 
&lt;br&gt;&amp;gt; defined jar names. However,
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;there are also a few non-conformant properties (eclipselink.jar.name 
&lt;br&gt;&amp;gt; and .jarfile)
&lt;br&gt;&amp;gt; &amp;nbsp;-.dir really hasn't changed at all, but there were a few uses where it 
&lt;br&gt;&amp;gt; was a defining a pathref
&lt;br&gt;&amp;gt; &amp;nbsp;-.path is pretty much new old pathrefs were either .dir or .classpath
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; While I needed to implement these changes for the oracle modules for 
&lt;br&gt;&amp;gt; critical fixes in 2.0.0, I plan on implementing these changes across the 
&lt;br&gt;&amp;gt; board &amp;nbsp;after the branch and discussion has occurred.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Does anyone object to these standards, or have preferences other than 
&lt;br&gt;&amp;gt; what I plan to implement? I can see .jarfile being used as the standard 
&lt;br&gt;&amp;gt; postfix because the property can't easily be confused with a static 
&lt;br&gt;&amp;gt; usage of a jar, but it wasn't routinely used.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Comments? (If I hear nothing from you I will assume it is assent, and 
&lt;br&gt;&amp;gt; continue as outlined after the branch is complete.)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; -Eric
&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; eclipselink-dev mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26543440&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eclipselink-dev@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&lt;/a&gt;&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; eclipselink-dev mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26543440&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eclipselink-dev@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;/div&gt;_______________________________________________
&lt;br&gt;eclipselink-dev mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26543440&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eclipselink-dev@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;eclipselink-dev mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26543440&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eclipselink-dev@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/EclipseLink---Dev-f26332.html&quot; embed=&quot;fixTarget[26332]&quot; target=&quot;_top&quot; &gt;EclipseLink - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Expanding--%27standards%27-for-build-files.-tp26529184p26543440.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26543324</id>
	<title>AW: Error in EMQueryJUnitTestSuite.testcreateNativeQueryWithSelectSQL	on SAP NetWeaver</title>
	<published>2009-11-27T06:42:36Z</published>
	<updated>2009-11-27T06:42:36Z</updated>
	<author>
		<name>Goerler, Adrian</name>
	</author>
	<content type="html">Hi Yiping,
&lt;br&gt;&lt;br&gt;&amp;gt; We did find the test error on other servers, but we haven't had time to fix it yet.
&lt;br&gt;&lt;br&gt;hm, this explains why we could not understand how the tests could pass on a different server :-)
&lt;br&gt;&lt;br&gt;Actually, the fix you are proposing does not work on NetWeaver either:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; /*
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;* createNativeQuery(string) feature test
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;* &amp;nbsp; tests that Query with Select SQL can be executed using getResultList() after it
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;* &amp;nbsp; has run using executeUpdate()
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;*/
&lt;br&gt;&amp;nbsp; &amp;nbsp; public void testcreateNativeQueryWithSelectSQL() throws Exception {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; EntityManager em = createEntityManager();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; try{
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; beginTransaction(em);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Query query1 = em.createNativeQuery(&amp;quot;Select * FROM CMP3_CUSTOMER&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Query query2 = em.createNativeQuery(&amp;quot;INSERT INTO CMP3_CUSTOMER (CUST_ID, NAME, CITY, CUST_VERSION) VALUES (1111, NULL, NULL, 1)&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Query query3 = em.createNativeQuery(&amp;quot;DELETE FROM CMP3_CUSTOMER WHERE (CUST_ID=1111)&amp;quot;);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Collection c1 = query1.getResultList();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; assertTrue(&amp;quot;getResultList returned null &amp;quot;,c1!=null );
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // this may fail with some drivers
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; int result = 0;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; try {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; result = query1.executeUpdate();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; } catch (RuntimeException ex) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; rollbackTransaction(em);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; closeEntityManager(em);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; em = createEntityManager();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; beginTransaction(em);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; query2.executeUpdate(); &amp;nbsp;&amp;lt;----------
&lt;br&gt;&lt;br&gt;&lt;br&gt;Query2 is still associated with the entity manager closed by the rollback.
&lt;br&gt;&lt;br&gt;Actually, I think the issue is the rollback in the catch block. We can just do without it:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; /*
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;* createNativeQuery(string) feature test
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;* &amp;nbsp; tests that Query with Select SQL can be executed using getResultList() after it
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;* &amp;nbsp; has run using executeUpdate()
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;*/
&lt;br&gt;&amp;nbsp; &amp;nbsp; public void testcreateNativeQueryWithSelectSQL() throws Exception {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; EntityManager em = createEntityManager();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; try{
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; beginTransaction(em);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Query query1 = em.createNativeQuery(&amp;quot;Select * FROM CMP3_CUSTOMER&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Query query2 = em.createNativeQuery(&amp;quot;INSERT INTO CMP3_CUSTOMER (CUST_ID, NAME, CITY, CUST_VERSION) VALUES (1111, NULL, NULL, 1)&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Query query3 = em.createNativeQuery(&amp;quot;DELETE FROM CMP3_CUSTOMER WHERE (CUST_ID=1111)&amp;quot;);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Collection c1 = query1.getResultList();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; assertTrue(&amp;quot;getResultList returned null &amp;quot;,c1!=null );
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; int result = 0;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; try {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; result = query1.executeUpdate();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; } catch (RuntimeException ex) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // this may fail with some drivers
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 	assertTrue(&amp;quot;transaction has been rolled back&amp;quot;, isTransactionActive(em));
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; query2.executeUpdate();
&lt;br&gt;&lt;br&gt;In any case, I am opening a ticket for this issue:
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;https://bugs.eclipse.org/bugs/show_bug.cgi?id=296340&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://bugs.eclipse.org/bugs/show_bug.cgi?id=296340&lt;/a&gt;&lt;br&gt;&lt;br&gt;-Adrian
&lt;br&gt;&lt;br&gt;---
&lt;br&gt;Adrian Görler
&lt;br&gt;SAP AG
&lt;br&gt;&lt;br&gt;Pflichtangaben/Mandatory Disclosure Statements: &lt;a href=&quot;http://www.sap.com/company/legal/impressum.epx&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.sap.com/company/legal/impressum.epx&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-----Ursprüngliche Nachricht-----
&lt;br&gt;Von: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26543324&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eclipselink-dev-bounces@...&lt;/a&gt; [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26543324&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eclipselink-dev-bounces@...&lt;/a&gt;] Im Auftrag von yiping zhao
&lt;br&gt;Gesendet: Donnerstag, 26. November 2009 16:50
&lt;br&gt;An: tom Ware
&lt;br&gt;Cc: Dev mailing list for Eclipse Persistence Services
&lt;br&gt;Betreff: Re: [eclipselink-dev] Error in EMQueryJUnitTestSuite.testcreateNativeQueryWithSelectSQL on SAP NetWeaver
&lt;br&gt;&lt;br&gt;Hi Tom,
&lt;br&gt;&lt;br&gt;We did find the test error on other servers, but we haven't had time to 
&lt;br&gt;fix it yet. so the testcase needs to be fixed like:
&lt;br&gt;&lt;br&gt;// this may fail with some drivers
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; int result = 0;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; try {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; result = query1.executeUpdate();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; } catch (RuntimeException ex) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; rollbackTransaction(em);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; closeEntityManager(em);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; em = createEntityManager();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; beginTransaction(em);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;Yiping
&lt;br&gt;&lt;br&gt;On 11/26/2009 10:10 AM, Tom Ware wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; If the entity manager is transaction scoped, I think Sabine is right. &amp;nbsp;
&lt;br&gt;&amp;gt; The entity manager should be closed when the transaction either 
&lt;br&gt;&amp;gt; commits or rolls back. &amp;nbsp;I wonder why that is not happening on other 
&lt;br&gt;&amp;gt; servers. &amp;nbsp;(you'll notice query1.executeUpdate() is designed to fail)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; -Tom
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; yiping zhao wrote:
&lt;br&gt;&amp;gt;&amp;gt; Hi Sabine,
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; In the test framework, by default the entity manager is injected in 
&lt;br&gt;&amp;gt;&amp;gt; sessionbean, it's transaction-scoped.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp;&amp;gt;From the stacktrace, it looks like that there is issue when 
&lt;br&gt;&amp;gt;&amp;gt; executing &amp;quot;result = query1.executeUpdate();&amp;quot;, then somehow your SAP 
&lt;br&gt;&amp;gt;&amp;gt; NetWeaver application server closes the entity manager, after that 
&lt;br&gt;&amp;gt;&amp;gt; you get the exception &amp;quot;java.lang.IllegalStateException: Attempting to 
&lt;br&gt;&amp;gt;&amp;gt; execute an operation on a closed EntityManager&amp;quot; when executing 
&lt;br&gt;&amp;gt;&amp;gt; &amp;quot;query2.executeUpdate();&amp;quot;, so this sounds like a server issue.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Yiping
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; On 11/26/2009 4:34 AM, Heider, Sabine wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Hi Tom,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; I'm not really familiar with the details of test framework either, 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; but I guess the entity manager is taken from the TestRunnerBean:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; @Stateless(name=&amp;quot;TestRunner&amp;quot;, mappedName=&amp;quot;TestRunner&amp;quot;)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; @Remote(TestRunner.class)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; @TransactionManagement(TransactionManagementType.BEAN)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; public class TestRunnerBean implements TestRunner {
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /** The entity manager for the test is injected and passed 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; to the test server platform. */
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; @PersistenceContext
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; private EntityManager entityManager;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; /** The entity manager factory for the test is injected and 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; passed to the test server platform. */
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; @PersistenceUnit
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; private EntityManagerFactory entityManagerFactory;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; So yes, it is transaction-scoped.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Best regards,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Sabine
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; From: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26543324&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eclipselink-dev-bounces@...&lt;/a&gt; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26543324&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eclipselink-dev-bounces@...&lt;/a&gt;] On Behalf Of Tom Ware
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Sent: Mittwoch, 25. November 2009 14:07
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; To: Dev mailing list for Eclipse Persistence Services
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Subject: Re: [eclipselink-dev] Error in 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; EMQueryJUnitTestSuite.testcreateNativeQueryWithSelectSQL on SAP 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; NetWeaver
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Hi Sabine,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp;I am not familiar with how the entity manager for the tests are 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; created. &amp;nbsp;The part of the spec you are referring to is for 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Transaction-scoped entity managers. &amp;nbsp; Is the entity manager used in 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; this test created in such a way that it will be transaction-scoped 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; on all servers?
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; -Tom
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Heider, Sabine wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; I'd like to get your opinion on an error I get when running the JPA 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; server tests inside an SAP NetWeaver application server (stack 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; shortened, executed on current trunk):
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; java.lang.IllegalStateException: Attempting to execute an operation 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; on a closed EntityManager.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; at 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; org.eclipse.persistence.internal.jpa.EntityManagerImpl.verifyOpen(EntityManagerImpl.java:1516) 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; at 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; org.eclipse.persistence.internal.jpa.EJBQueryImpl.executeUpdate(EJBQueryImpl.java:492) 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; at 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; org.eclipse.persistence.testing.tests.jpa.relationships.EMQueryJUnitTestSuite.testcreateNativeQueryWithSelectSQL(EMQueryJUnitTestSuite.java:121) 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; at 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; org.eclipse.persistence.testing.framework.junit.JUnitTestCase.runBareServer(JUnitTestCase.java:463) 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; at 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; org.eclipse.persistence.testing.framework.server.TestRunnerBean.runTest(TestRunnerBean.java:87) 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; I run the test against a MySQL database. The MySQL driver throws an 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; SQLException in EMQueryJUnitTestSuite line 114: Can not issue 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; executeUpdate() for SELECTs.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Consequently, I end up in the catch block where the current 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; transaction is rolled back.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Chapter 7.9.1 of the JPA specification says:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;quot;After the JTA transaction has completed (either by transaction 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; commit or rollback), The container
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; closes the entity manager by calling EntityManager.close.&amp;quot;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Apparently, this is what the JPA container in NetWeaver does. With 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; the closed entity manager, however, query2 becomes unusable.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; In my opinion, it's an error of the test rather than of the JPA 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; container, but I might be wrong. What do you think?
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Thanks and best regards,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Sabine
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; *Sabine Heider
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; **SAP AG
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; *Pflichtangaben/Mandatory Disclosure Statements:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; _http://www.sap.com/company/legal/impressum.epx_
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; ------------------------------------------------------------------------ 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; eclipselink-dev mailing list
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26543324&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eclipselink-dev@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; eclipselink-dev mailing list
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26543324&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eclipselink-dev@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; eclipselink-dev mailing list
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26543324&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eclipselink-dev@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; ------------------------------------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt;&amp;gt; eclipselink-dev mailing list
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26543324&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eclipselink-dev@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&lt;/a&gt;&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; eclipselink-dev mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26543324&amp;i=8&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eclipselink-dev@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&lt;/a&gt;&lt;/div&gt;_______________________________________________
&lt;br&gt;eclipselink-dev mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26543324&amp;i=9&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eclipselink-dev@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;eclipselink-dev mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26543324&amp;i=10&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eclipselink-dev@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/EclipseLink---Dev-f26332.html&quot; embed=&quot;fixTarget[26332]&quot; target=&quot;_top&quot; &gt;EclipseLink - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Error-in-EMQueryJUnitTestSuite.testcreateNativeQueryWithSelectSQL-on-SAP-NetWeaver-tp26512010p26543324.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26543212</id>
	<title>Re: Expanding  'standards' for build files.</title>
	<published>2009-11-27T06:34:27Z</published>
	<updated>2009-11-27T06:34:27Z</updated>
	<author>
		<name>Gordon Yorke-2</name>
	</author>
	<content type="html">I prefer Eric's proposal for &amp;lt;name&amp;gt;.jar, &amp;lt;name&amp;gt;.lib and &amp;lt;name&amp;gt;.dir
&lt;br&gt;--Gordon
&lt;br&gt;&lt;br&gt;Edwin Tang wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi Eric,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; This is great initiative.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Probably, instead of &amp;lt;name&amp;gt;.jar, &amp;lt;name&amp;gt;.lib and &amp;lt;name&amp;gt;.path, it could better that we have
&lt;br&gt;&amp;gt; &amp;lt;name&amp;gt;.dir: the location of a jar file
&lt;br&gt;&amp;gt; &amp;lt;name&amp;gt;.lib: a jar file name
&lt;br&gt;&amp;gt; &amp;lt;name&amp;gt;.path: a path element defined by &amp;lt;pathelement path=&amp;quot;${&amp;lt;name&amp;gt;.dir}/${&amp;lt;name&amp;gt;.lib}&amp;quot;/&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The benifits of this option are:
&lt;br&gt;&amp;gt; 1. Users have full flexibility to able to customize &amp;lt;name&amp;gt;.dir, &amp;lt;name&amp;gt;.lib, or both for every single jar file
&lt;br&gt;&amp;gt; 2. Avoid the difficulty to choose a sound property name - &amp;lt;name&amp;gt;.jar or &amp;lt;name&amp;gt;.jarfile
&lt;br&gt;&amp;gt; 3. Be consistent with the TopLink test/build naming conventions
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt; Edwin
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt; From: Eric Gwin 
&lt;br&gt;&amp;gt; Sent: Thursday, November 26, 2009 8:06 AM
&lt;br&gt;&amp;gt; To: Dev mailing list for Eclipse Persistence Services
&lt;br&gt;&amp;gt; Subject: [eclipselink-dev] Expanding 'standards' for build files.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I'm sending this out as a notification/proposal of some additional 
&lt;br&gt;&amp;gt; standard conventions I plan on adding to our build files after the branch.
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;- properties ending in .jar define jarfile names only (no path)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;- properties ending in .lib are fully qualified jars (path and 
&lt;br&gt;&amp;gt; filename)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;- properties ending in .dir are directory paths
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;- properties ending in .path are path refid names (classpath fragments)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;- targets beginning with test- are reserved for high level test 
&lt;br&gt;&amp;gt; targets,
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;and are used in test results parsing
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;- targets typically use the form &amp;lt;action&amp;gt;-&amp;lt;object&amp;gt;-&amp;lt;type&amp;gt; (ie. 
&lt;br&gt;&amp;gt; package-bundle-zip)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Some are clarifications of standards already in place, but not well 
&lt;br&gt;&amp;gt; publicized. However, with regard to .jar/.lib and .dir/.path there is no 
&lt;br&gt;&amp;gt; current standard, and properties are named and used in a fairly random 
&lt;br&gt;&amp;gt; mostly interchangeable way. There are many reasons this is becoming an 
&lt;br&gt;&amp;gt; issue now, but here are the biggest:
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;- bugs requesting the use of minimal classpaths necessitate the 
&lt;br&gt;&amp;gt; need to individually
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;define libraries. However, the build has multiple entry points so 
&lt;br&gt;&amp;gt; paths to those
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;libraries are relative to the entry point. So the need to 
&lt;br&gt;&amp;gt; separate path from jar name.
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;- adding individual libraries (rather than eclipselink.core.depend 
&lt;br&gt;&amp;gt; or eclipslink.oracle.depend
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; which list them all) also creates a need to separately define 
&lt;br&gt;&amp;gt; directories and classpath subsets.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; For the most part I've tried to keep the usage most prevalent for each 
&lt;br&gt;&amp;gt; postfix
&lt;br&gt;&amp;gt; &amp;nbsp;-.lib was mostly used to define full paths to jars, while .jar mostly 
&lt;br&gt;&amp;gt; defined jar names. However,
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;there are also a few non-conformant properties (eclipselink.jar.name 
&lt;br&gt;&amp;gt; and .jarfile)
&lt;br&gt;&amp;gt; &amp;nbsp;-.dir really hasn't changed at all, but there were a few uses where it 
&lt;br&gt;&amp;gt; was a defining a pathref
&lt;br&gt;&amp;gt; &amp;nbsp;-.path is pretty much new old pathrefs were either .dir or .classpath
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; While I needed to implement these changes for the oracle modules for 
&lt;br&gt;&amp;gt; critical fixes in 2.0.0, I plan on implementing these changes across the 
&lt;br&gt;&amp;gt; board &amp;nbsp;after the branch and discussion has occurred.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Does anyone object to these standards, or have preferences other than 
&lt;br&gt;&amp;gt; what I plan to implement? I can see .jarfile being used as the standard 
&lt;br&gt;&amp;gt; postfix because the property can't easily be confused with a static 
&lt;br&gt;&amp;gt; usage of a jar, but it wasn't routinely used.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Comments? (If I hear nothing from you I will assume it is assent, and 
&lt;br&gt;&amp;gt; continue as outlined after the branch is complete.)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; -Eric
&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; eclipselink-dev mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26543212&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eclipselink-dev@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&lt;/a&gt;&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; eclipselink-dev mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26543212&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eclipselink-dev@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;/div&gt;_______________________________________________
&lt;br&gt;eclipselink-dev mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26543212&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eclipselink-dev@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/EclipseLink---Dev-f26332.html&quot; embed=&quot;fixTarget[26332]&quot; target=&quot;_top&quot; &gt;EclipseLink - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Expanding--%27standards%27-for-build-files.-tp26529184p26543212.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26543110</id>
	<title>RE: Expanding  'standards' for build files.</title>
	<published>2009-11-27T06:20:41Z</published>
	<updated>2009-11-27T06:20:41Z</updated>
	<author>
		<name>Edwin Tang</name>
	</author>
	<content type="html">Hi Eric,
&lt;br&gt;&lt;br&gt;This is great initiative.
&lt;br&gt;&lt;br&gt;Probably, instead of &amp;lt;name&amp;gt;.jar, &amp;lt;name&amp;gt;.lib and &amp;lt;name&amp;gt;.path, it could better that we have
&lt;br&gt;&amp;lt;name&amp;gt;.dir: the location of a jar file
&lt;br&gt;&amp;lt;name&amp;gt;.lib: a jar file name
&lt;br&gt;&amp;lt;name&amp;gt;.path: a path element defined by &amp;lt;pathelement path=&amp;quot;${&amp;lt;name&amp;gt;.dir}/${&amp;lt;name&amp;gt;.lib}&amp;quot;/&amp;gt;
&lt;br&gt;&lt;br&gt;The benifits of this option are:
&lt;br&gt;1. Users have full flexibility to able to customize &amp;lt;name&amp;gt;.dir, &amp;lt;name&amp;gt;.lib, or both for every single jar file
&lt;br&gt;2. Avoid the difficulty to choose a sound property name - &amp;lt;name&amp;gt;.jar or &amp;lt;name&amp;gt;.jarfile
&lt;br&gt;3. Be consistent with the TopLink test/build naming conventions
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;Edwin
&lt;br&gt;&lt;br&gt;-----Original Message-----
&lt;br&gt;From: Eric Gwin 
&lt;br&gt;Sent: Thursday, November 26, 2009 8:06 AM
&lt;br&gt;To: Dev mailing list for Eclipse Persistence Services
&lt;br&gt;Subject: [eclipselink-dev] Expanding 'standards' for build files.
&lt;br&gt;&lt;br&gt;&lt;br&gt;Hi,
&lt;br&gt;&lt;br&gt;I'm sending this out as a notification/proposal of some additional 
&lt;br&gt;standard conventions I plan on adding to our build files after the branch.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;- properties ending in .jar define jarfile names only (no path)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;- properties ending in .lib are fully qualified jars (path and 
&lt;br&gt;filename)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;- properties ending in .dir are directory paths
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;- properties ending in .path are path refid names (classpath fragments)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;- targets beginning with test- are reserved for high level test 
&lt;br&gt;targets,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;and are used in test results parsing
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;- targets typically use the form &amp;lt;action&amp;gt;-&amp;lt;object&amp;gt;-&amp;lt;type&amp;gt; (ie. 
&lt;br&gt;package-bundle-zip)
&lt;br&gt;&lt;br&gt;Some are clarifications of standards already in place, but not well 
&lt;br&gt;publicized. However, with regard to .jar/.lib and .dir/.path there is no 
&lt;br&gt;current standard, and properties are named and used in a fairly random 
&lt;br&gt;mostly interchangeable way. There are many reasons this is becoming an 
&lt;br&gt;issue now, but here are the biggest:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;- bugs requesting the use of minimal classpaths necessitate the 
&lt;br&gt;need to individually
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;define libraries. However, the build has multiple entry points so 
&lt;br&gt;paths to those
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;libraries are relative to the entry point. So the need to 
&lt;br&gt;separate path from jar name.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;- adding individual libraries (rather than eclipselink.core.depend 
&lt;br&gt;or eclipslink.oracle.depend
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; which list them all) also creates a need to separately define 
&lt;br&gt;directories and classpath subsets.
&lt;br&gt;&lt;br&gt;For the most part I've tried to keep the usage most prevalent for each 
&lt;br&gt;postfix
&lt;br&gt;&amp;nbsp;-.lib was mostly used to define full paths to jars, while .jar mostly 
&lt;br&gt;defined jar names. However,
&lt;br&gt;&amp;nbsp; &amp;nbsp;there are also a few non-conformant properties (eclipselink.jar.name 
&lt;br&gt;and .jarfile)
&lt;br&gt;&amp;nbsp;-.dir really hasn't changed at all, but there were a few uses where it 
&lt;br&gt;was a defining a pathref
&lt;br&gt;&amp;nbsp;-.path is pretty much new old pathrefs were either .dir or .classpath
&lt;br&gt;&lt;br&gt;While I needed to implement these changes for the oracle modules for 
&lt;br&gt;critical fixes in 2.0.0, I plan on implementing these changes across the 
&lt;br&gt;board &amp;nbsp;after the branch and discussion has occurred.
&lt;br&gt;&lt;br&gt;Does anyone object to these standards, or have preferences other than 
&lt;br&gt;what I plan to implement? I can see .jarfile being used as the standard 
&lt;br&gt;postfix because the property can't easily be confused with a static 
&lt;br&gt;usage of a jar, but it wasn't routinely used.
&lt;br&gt;&lt;br&gt;Comments? (If I hear nothing from you I will assume it is assent, and 
&lt;br&gt;continue as outlined after the branch is complete.)
&lt;br&gt;&lt;br&gt;-Eric
&lt;br&gt;_______________________________________________
&lt;br&gt;eclipselink-dev mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26543110&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eclipselink-dev@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;eclipselink-dev mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26543110&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eclipselink-dev@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/EclipseLink---Dev-f26332.html&quot; embed=&quot;fixTarget[26332]&quot; target=&quot;_top&quot; &gt;EclipseLink - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Expanding--%27standards%27-for-build-files.-tp26529184p26543110.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26542927</id>
	<title>Re: Moxy &amp; JPA with Eclipselink</title>
	<published>2009-11-27T06:11:13Z</published>
	<updated>2009-11-27T06:11:13Z</updated>
	<author>
		<name>Blaise Doughan</name>
	</author>
	<content type="html">&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD HTML 4.01 Transitional//EN&quot;&gt;
&lt;html&gt;
&lt;head&gt;
  &lt;meta content=&quot;text/html;charset=ISO-8859-1&quot; http-equiv=&quot;Content-Type&quot;&gt;
&lt;/head&gt;
&lt;body bgcolor=&quot;#ffffff&quot; text=&quot;#000000&quot;&gt;
Hi Adam,&lt;br&gt;
&lt;br&gt;
You are correct, the JAXB annotations will allow you to map the JPA
entity classes to XML.&amp;nbsp; This will require you only have one Java model.&lt;br&gt;
&lt;br&gt;
You can generate an XML schema from annotated Java classes using the
generateSchema(SchemaOutputResolver) method on JAXBContext:&lt;br&gt;
&lt;ul&gt;
  &lt;li&gt;&lt;a class=&quot;moz-txt-link-freetext&quot; href=&quot;http://java.sun.com/javase/6/docs/api/javax/xml/bind/JAXBContext.html#generateSchema(javax.xml.bind.SchemaOutputResolver)&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://java.sun.com/javase/6/docs/api/javax/xml/bind/JAXBContext.html#generateSchema(javax.xml.bind.SchemaOutputResolver)&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
Using EclipseLink 2.0 JAXB you will also be able to:&lt;br&gt;
&lt;ul&gt;
  &lt;li&gt;Map bidirectional relationships using @XmlInverseReferece&lt;/li&gt;
  &lt;li&gt;Use composite keys in key based XML relationships&lt;/li&gt;
  &lt;li&gt;Map JPA entites with embedded key classes&lt;br&gt;
  &lt;/li&gt;
  &lt;li&gt;Use the @XmlID annotation on non-String fields and Properties&lt;/li&gt;
&lt;/ul&gt;
&lt;br&gt;
-Blaise&lt;br&gt;
&lt;br&gt;
Adam Stroud wrote:
&lt;blockquote cite=&quot;mid:4B0F3DFF.8010308@gmail.com&quot; type=&quot;cite&quot;&gt;
  &lt;pre wrap=&quot;&quot;&gt;Blaise:

Thanks for the reply.  I have not come across any issues yet as I have
just started development.  I am developing a RESTful web service that
will receive XML that will need to be mapped to JPA entities that will
be persisted.  My initial thought was to create an XSD to define the web
service traffic, and run JAXB over this to create Java classes.  I would
then define the entities to be persisted and manually write the code to
convert the XML to the entities.  This just didnt feel right so I
started to see if there was a better way.  It seems that the JAXB
annotations might be what I am looking for.  From what I have seen thus
far, I will be able to both marshal and unmarshal the XML into my
entities.  The only feature I would still like to have is the XSD.  It
does not look like I can generate an XSD from JAXB annotated classes.
So, if I want the XSD it looks like I need to maintain multiple models.
 Any other ideas?

Thanks
Adam

Blaise Doughan wrote:
  &lt;/pre&gt;
  &lt;blockquote type=&quot;cite&quot;&gt;
    &lt;pre wrap=&quot;&quot;&gt;Hi Adam,

My apologies for not getting back to the thread.  If you let me know the
issues you are encountering I will help you out.

You should be able to do this in one model.  Below is a link to an
example I am working on to do just what you are describing with the
EclipseLink 2.0 APIs:

    * &lt;a class=&quot;moz-txt-link-freetext&quot; href=&quot;http://wiki.eclipse.org/EclipseLink/Examples/MOXy/JPA&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://wiki.eclipse.org/EclipseLink/Examples/MOXy/JPA&lt;/a&gt;

It is still a work in progress, some other things you will find useful:

    * /*Bidirectional Relationship Support*/
      Today we will be checking in an XMLInvereseReferenceMapping, this
      mapping will allow you map back pointers.
    * /*Composite Key Support*/
      EclipseLink 2.0 now supports composite keys on all the key based
      mappings.  I still need to update the example with this.

-Blaise

Adam Stroud wrote:
    &lt;/pre&gt;
    &lt;blockquote type=&quot;cite&quot;&gt;
      &lt;pre wrap=&quot;&quot;&gt;All:

I am developing an application that uses Eclipselink both JAXB (Moxy)
and JPA.  My question is what is the best way to go from my current
data model to entities and XML without maintaining three different
models.  I saw an earlier post to the mailing list here -&amp;gt;
&lt;a class=&quot;moz-txt-link-freetext&quot; href=&quot;http://dev.eclipse.org/mhonarc/lists/eclipselink-users/msg03473.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://dev.eclipse.org/mhonarc/lists/eclipselink-users/msg03473.html&lt;/a&gt;,
but it does not look like the examples referenced in the reply were
posted to the list.  Any input/guidance would be appreciated.

Thanks
Adam
_______________________________________________
eclipselink-users mailing list
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26542927&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eclipselink-users@...&lt;/a&gt;
&lt;a class=&quot;moz-txt-link-freetext&quot; href=&quot;https://dev.eclipse.org/mailman/listinfo/eclipselink-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://dev.eclipse.org/mailman/listinfo/eclipselink-users&lt;/a&gt;
  
      &lt;/pre&gt;
    &lt;/blockquote&gt;
  &lt;/blockquote&gt;
  &lt;pre wrap=&quot;&quot;&gt;&lt;!----&gt;
  &lt;/pre&gt;
&lt;/blockquote&gt;
&lt;/body&gt;
&lt;/html&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;eclipselink-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26542927&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eclipselink-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://dev.eclipse.org/mailman/listinfo/eclipselink-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://dev.eclipse.org/mailman/listinfo/eclipselink-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/EclipseLink---Users-f26658.html&quot; embed=&quot;fixTarget[26658]&quot; target=&quot;_top&quot; &gt;EclipseLink - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Moxy---JPA-with-Eclipselink-tp26503736p26542927.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26543159</id>
	<title>Re: multible fetch joins</title>
	<published>2009-11-27T05:59:30Z</published>
	<updated>2009-11-27T05:59:30Z</updated>
	<author>
		<name>tware</name>
	</author>
	<content type="html">Hi Michael,
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;The limitation on JPQL fetch joins comes from the JPA specification.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;Have a look at the following link to see how you can get multiple fetch joins 
&lt;br&gt;in all versions of EclipseLink.
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://wiki.eclipse.org/Using_EclipseLink_JPA_Extensions_%28ELUG%29#Join_Fetch&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://wiki.eclipse.org/Using_EclipseLink_JPA_Extensions_%28ELUG%29#Join_Fetch&lt;/a&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;We are currently considering what the feature set will be for EclipseLink 2.1 
&lt;br&gt;and the following enhancement request covers expanding EclipseLink's JPQL 
&lt;br&gt;capabilities beyond the JPA spec. &amp;nbsp;Please feel free to vote for it and add any 
&lt;br&gt;comments you have.
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;https://bugs.eclipse.org/bugs/show_bug.cgi?id=219814&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://bugs.eclipse.org/bugs/show_bug.cgi?id=219814&lt;/a&gt;&lt;br&gt;&lt;br&gt;-Tom
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Michael Simons wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hello [EclipseLink 1.2.0, database=MySQL 5],
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I'm trying to port a client/server application first to JPA to enable the 3-tier migration.
&lt;br&gt;&amp;gt; At the moment I try to use EclipseLink as JPA implementation.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; EclipseLink 1.2.0 does not support multible fetch joins like
&lt;br&gt;&amp;gt; select a from A a fetch join A.b b ...
&lt;br&gt;&amp;gt; because the alias 'b' is already denied.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Will this be supported in the 2.x of EclipseLink?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Kind Regards,
&lt;br&gt;&amp;gt; Michael
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; eclipselink-users mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26543159&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eclipselink-users@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://dev.eclipse.org/mailman/listinfo/eclipselink-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://dev.eclipse.org/mailman/listinfo/eclipselink-users&lt;/a&gt;&lt;/div&gt;_______________________________________________
&lt;br&gt;eclipselink-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26543159&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eclipselink-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://dev.eclipse.org/mailman/listinfo/eclipselink-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://dev.eclipse.org/mailman/listinfo/eclipselink-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/EclipseLink---Users-f26658.html&quot; embed=&quot;fixTarget[26658]&quot; target=&quot;_top&quot; &gt;EclipseLink - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/multible-fetch-joins-tp26541274p26543159.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26542697</id>
	<title>Re: Discriminator and Inheritance.strategy</title>
	<published>2009-11-27T05:56:10Z</published>
	<updated>2009-11-27T05:56:10Z</updated>
	<author>
		<name>Guy Pelletier</name>
	</author>
	<content type="html">Hi Michael,
&lt;br&gt;&lt;br&gt;Further to Chris' reply, in your case you may want to look at specifying a 
&lt;br&gt;descriptor customizer and setting a class extractor which will avoid using 
&lt;br&gt;the discriminator column.
&lt;br&gt;&lt;br&gt;More info here on building a customizer:
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://wiki.eclipse.org/Customizing_the_EclipseLink_Application_%28ELUG%29&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://wiki.eclipse.org/Customizing_the_EclipseLink_Application_%28ELUG%29&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Cheers,
&lt;br&gt;Guy
&lt;br&gt;&lt;br&gt;----- Original Message ----- 
&lt;br&gt;From: &amp;quot;Michael Simons&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26542697&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;michael.simons@...&lt;/a&gt;&amp;gt;
&lt;br&gt;To: &amp;quot;Guy Pelletier&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26542697&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;guy.pelletier@...&lt;/a&gt;&amp;gt;; &amp;quot;EclipseLink User 
&lt;br&gt;Discussions&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26542697&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eclipselink-users@...&lt;/a&gt;&amp;gt;
&lt;br&gt;Sent: Friday, November 27, 2009 8:23 AM
&lt;br&gt;Subject: Re: [eclipselink-users] Discriminator and Inheritance.strategy
&lt;br&gt;&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hello Guy,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; unfortunately we have the Inheritance.JOIN strategy.
&lt;br&gt;&amp;gt; I don't understand why there's a discriminator needed for this strategy 
&lt;br&gt;&amp;gt; because which class an
&lt;br&gt;&amp;gt; object is instance of is determined by the entry in the &amp;quot;sub&amp;quot;-table, isn't 
&lt;br&gt;&amp;gt; it?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; kind regards,
&lt;br&gt;&amp;gt; Michael
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Guy Pelletier schrieb:
&lt;br&gt;&amp;gt;&amp;gt; A discriminator column is not needed for a TABLE_PER_CLASS strategy.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; The discriminator column is used to determine which class of object that
&lt;br&gt;&amp;gt;&amp;gt; row represents.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Cheers,
&lt;br&gt;&amp;gt;&amp;gt; Guy
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; ----- Original Message ----- From: &amp;quot;Michael Simons&amp;quot;
&lt;br&gt;&amp;gt;&amp;gt; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26542697&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;michael.simons@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; To: &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26542697&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eclipselink-users@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Sent: Friday, November 27, 2009 6:33 AM
&lt;br&gt;&amp;gt;&amp;gt; Subject: [eclipselink-users] Discriminator and Inheritance.strategy
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Hello,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; I'm trying to port a client/server application first to JPA to enable
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; the 3-tier migration.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; At the moment I try to use EclipseLink as JPA implementation.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; The first exception I fall over said &amp;quot;Unknown column 't2.DTYPE' in
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 'field list'&amp;quot;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Seems like EclipseLink always needs a discriminator column even if the
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; inheritance strategy is
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; JOIN or TABLE_PER_CLASS.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Is this correct?
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; And if so, what is it good/needed for?
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; [EclipseLink 1.2.0, database=MySQL 5]
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Kind Regards,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Michael
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; eclipselink-users mailing list
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26542697&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eclipselink-users@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;https://dev.eclipse.org/mailman/listinfo/eclipselink-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://dev.eclipse.org/mailman/listinfo/eclipselink-users&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt;&amp;gt; eclipselink-users mailing list
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26542697&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eclipselink-users@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;https://dev.eclipse.org/mailman/listinfo/eclipselink-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://dev.eclipse.org/mailman/listinfo/eclipselink-users&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;eclipselink-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26542697&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eclipselink-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://dev.eclipse.org/mailman/listinfo/eclipselink-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://dev.eclipse.org/mailman/listinfo/eclipselink-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/EclipseLink---Users-f26658.html&quot; embed=&quot;fixTarget[26658]&quot; target=&quot;_top&quot; &gt;EclipseLink - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Discriminator-and-Inheritance.strategy-tp26541229p26542697.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26542597</id>
	<title>Re: Discriminator and Inheritance.strategy</title>
	<published>2009-11-27T05:42:12Z</published>
	<updated>2009-11-27T05:42:12Z</updated>
	<author>
		<name>christopher delahunt</name>
	</author>
	<content type="html">Hello Michael
&lt;br&gt;&lt;br&gt;There is no way to know which subtables need to be joined without the 
&lt;br&gt;discriminator field in the main table, and allows null rows in the 
&lt;br&gt;subtable to be distinguished from null subtable results being null in 
&lt;br&gt;the case an outer join or view is used.
&lt;br&gt;&lt;br&gt;Best Regards,
&lt;br&gt;Chris.
&lt;br&gt;&lt;br&gt;Michael Simons wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hello Guy,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; unfortunately we have the Inheritance.JOIN strategy.
&lt;br&gt;&amp;gt; I don't understand why there's a discriminator needed for this strategy because which class an
&lt;br&gt;&amp;gt; object is instance of is determined by the entry in the &amp;quot;sub&amp;quot;-table, isn't it?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; kind regards,
&lt;br&gt;&amp;gt; Michael
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Guy Pelletier schrieb:
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt; A discriminator column is not needed for a TABLE_PER_CLASS strategy.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; The discriminator column is used to determine which class of object that
&lt;br&gt;&amp;gt;&amp;gt; row represents.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Cheers,
&lt;br&gt;&amp;gt;&amp;gt; Guy
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; ----- Original Message ----- From: &amp;quot;Michael Simons&amp;quot;
&lt;br&gt;&amp;gt;&amp;gt; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26542597&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;michael.simons@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; To: &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26542597&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eclipselink-users@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Sent: Friday, November 27, 2009 6:33 AM
&lt;br&gt;&amp;gt;&amp;gt; Subject: [eclipselink-users] Discriminator and Inheritance.strategy
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Hello,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; I'm trying to port a client/server application first to JPA to enable
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; the 3-tier migration.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; At the moment I try to use EclipseLink as JPA implementation.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; The first exception I fall over said &amp;quot;Unknown column 't2.DTYPE' in
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 'field list'&amp;quot;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Seems like EclipseLink always needs a discriminator column even if the
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; inheritance strategy is
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; JOIN or TABLE_PER_CLASS.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Is this correct?
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; And if so, what is it good/needed for?
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; [EclipseLink 1.2.0, database=MySQL 5]
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Kind Regards,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Michael
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; eclipselink-users mailing list
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26542597&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eclipselink-users@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;https://dev.eclipse.org/mailman/listinfo/eclipselink-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://dev.eclipse.org/mailman/listinfo/eclipselink-users&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt;&amp;gt; eclipselink-users mailing list
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26542597&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eclipselink-users@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;https://dev.eclipse.org/mailman/listinfo/eclipselink-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://dev.eclipse.org/mailman/listinfo/eclipselink-users&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; eclipselink-users mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26542597&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eclipselink-users@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://dev.eclipse.org/mailman/listinfo/eclipselink-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://dev.eclipse.org/mailman/listinfo/eclipselink-users&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;/div&gt;_______________________________________________
&lt;br&gt;eclipselink-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26542597&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eclipselink-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://dev.eclipse.org/mailman/listinfo/eclipselink-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://dev.eclipse.org/mailman/listinfo/eclipselink-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/EclipseLink---Users-f26658.html&quot; embed=&quot;fixTarget[26658]&quot; target=&quot;_top&quot; &gt;EclipseLink - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Discriminator-and-Inheritance.strategy-tp26541229p26542597.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26542363</id>
	<title>Re: Discriminator and Inheritance.strategy</title>
	<published>2009-11-27T05:23:58Z</published>
	<updated>2009-11-27T05:23:58Z</updated>
	<author>
		<name>Michael Simons</name>
	</author>
	<content type="html">Hello Guy,
&lt;br&gt;&lt;br&gt;unfortunately we have the Inheritance.JOIN strategy.
&lt;br&gt;I don't understand why there's a discriminator needed for this strategy because which class an
&lt;br&gt;object is instance of is determined by the entry in the &amp;quot;sub&amp;quot;-table, isn't it?
&lt;br&gt;&lt;br&gt;kind regards,
&lt;br&gt;Michael
&lt;br&gt;&lt;br&gt;Guy Pelletier schrieb:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; A discriminator column is not needed for a TABLE_PER_CLASS strategy.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; The discriminator column is used to determine which class of object that
&lt;br&gt;&amp;gt; row represents.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Cheers,
&lt;br&gt;&amp;gt; Guy
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; ----- Original Message ----- From: &amp;quot;Michael Simons&amp;quot;
&lt;br&gt;&amp;gt; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26542363&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;michael.simons@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; To: &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26542363&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eclipselink-users@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; Sent: Friday, November 27, 2009 6:33 AM
&lt;br&gt;&amp;gt; Subject: [eclipselink-users] Discriminator and Inheritance.strategy
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; Hello,
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I'm trying to port a client/server application first to JPA to enable
&lt;br&gt;&amp;gt;&amp;gt; the 3-tier migration.
&lt;br&gt;&amp;gt;&amp;gt; At the moment I try to use EclipseLink as JPA implementation.
&lt;br&gt;&amp;gt;&amp;gt; The first exception I fall over said &amp;quot;Unknown column 't2.DTYPE' in
&lt;br&gt;&amp;gt;&amp;gt; 'field list'&amp;quot;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Seems like EclipseLink always needs a discriminator column even if the
&lt;br&gt;&amp;gt;&amp;gt; inheritance strategy is
&lt;br&gt;&amp;gt;&amp;gt; JOIN or TABLE_PER_CLASS.
&lt;br&gt;&amp;gt;&amp;gt; Is this correct?
&lt;br&gt;&amp;gt;&amp;gt; And if so, what is it good/needed for?
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; [EclipseLink 1.2.0, database=MySQL 5]
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Kind Regards,
&lt;br&gt;&amp;gt;&amp;gt; Michael
&lt;br&gt;&amp;gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt;&amp;gt; eclipselink-users mailing list
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26542363&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eclipselink-users@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;https://dev.eclipse.org/mailman/listinfo/eclipselink-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://dev.eclipse.org/mailman/listinfo/eclipselink-users&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; eclipselink-users mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26542363&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eclipselink-users@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://dev.eclipse.org/mailman/listinfo/eclipselink-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://dev.eclipse.org/mailman/listinfo/eclipselink-users&lt;/a&gt;&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;eclipselink-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26542363&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eclipselink-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://dev.eclipse.org/mailman/listinfo/eclipselink-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://dev.eclipse.org/mailman/listinfo/eclipselink-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/EclipseLink---Users-f26658.html&quot; embed=&quot;fixTarget[26658]&quot; target=&quot;_top&quot; &gt;EclipseLink - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Discriminator-and-Inheritance.strategy-tp26541229p26542363.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26542136</id>
	<title>Use an entity as a discriminator column</title>
	<published>2009-11-27T05:01:15Z</published>
	<updated>2009-11-27T05:01:15Z</updated>
	<author>
		<name>bea-5</name>
	</author>
	<content type="html">Hi,&lt;br&gt;&lt;br&gt;I have some entities with an joined inheritance type. In my
root entity I have an attribute that is a @ManyToOne relationship to
other table. In short, my entity looks like this:&lt;br&gt;&lt;br&gt;@Entity&lt;br&gt;@Inheritance(strategy = InheritanceType.JOINED)&lt;br&gt;


@Table(name = &amp;quot;service&amp;quot;)&lt;br&gt;public class Service implements Serializable {&lt;br&gt;&lt;br&gt;    @JoinColumn(name = &amp;quot;service_type_id&amp;quot;, referencedColumnName = &amp;quot;id&amp;quot;)&lt;br&gt;    @ManyToOne&lt;br&gt;    private ServiceType serviceTypeId;&lt;br&gt;



   ....&lt;br&gt;&lt;br&gt;The attribute serviceTypeId is a foreign key to other entity:&lt;br&gt;&lt;br&gt;@Entity&lt;br&gt;@Table(name = &amp;quot;service_type&amp;quot;)&lt;br&gt;public class TipoServicio implements Serializable {&lt;br&gt;&lt;br&gt;    @Id&lt;br&gt;    @GeneratedValue(strategy = GenerationType.IDENTITY)&lt;br&gt;



    @Basic(optional = false)&lt;br&gt;    @Column(name = &amp;quot;id&amp;quot;)&lt;br&gt;    private Integer id;&lt;br&gt;&lt;br&gt;    @Column(name = &amp;quot;name&amp;quot;)&lt;br&gt;    private String name;&lt;br&gt;    ......&lt;br&gt;&lt;br&gt;I&amp;#39;d
like to have as DiscriminatorColumn the field serviceTypeId, but I
don&amp;#39;t know how to do it, as that field hasn&amp;#39;t a correct
discriminatorType. Is there any way to do what I want?&lt;br&gt;

&lt;br&gt;Thanks!&lt;br clear=&quot;all&quot;&gt;&lt;br&gt;-- &lt;br&gt;Beatriz Nombela Escobar&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26542136&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;beaotx@...&lt;/a&gt;&lt;br&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;eclipselink-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26542136&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eclipselink-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://dev.eclipse.org/mailman/listinfo/eclipselink-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://dev.eclipse.org/mailman/listinfo/eclipselink-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/EclipseLink---Users-f26658.html&quot; embed=&quot;fixTarget[26658]&quot; target=&quot;_top&quot; &gt;EclipseLink - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Use-an-entity-as-a-discriminator-column-tp26542136p26542136.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26542060</id>
	<title>Re: Discriminator and Inheritance.strategy</title>
	<published>2009-11-27T04:54:55Z</published>
	<updated>2009-11-27T04:54:55Z</updated>
	<author>
		<name>Guy Pelletier</name>
	</author>
	<content type="html">A discriminator column is not needed for a TABLE_PER_CLASS strategy.
&lt;br&gt;&lt;br&gt;The discriminator column is used to determine which class of object that row 
&lt;br&gt;represents.
&lt;br&gt;&lt;br&gt;Cheers,
&lt;br&gt;Guy
&lt;br&gt;&lt;br&gt;----- Original Message ----- 
&lt;br&gt;From: &amp;quot;Michael Simons&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26542060&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;michael.simons@...&lt;/a&gt;&amp;gt;
&lt;br&gt;To: &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26542060&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eclipselink-users@...&lt;/a&gt;&amp;gt;
&lt;br&gt;Sent: Friday, November 27, 2009 6:33 AM
&lt;br&gt;Subject: [eclipselink-users] Discriminator and Inheritance.strategy
&lt;br&gt;&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hello,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I'm trying to port a client/server application first to JPA to enable the 
&lt;br&gt;&amp;gt; 3-tier migration.
&lt;br&gt;&amp;gt; At the moment I try to use EclipseLink as JPA implementation.
&lt;br&gt;&amp;gt; The first exception I fall over said &amp;quot;Unknown column 't2.DTYPE' in 'field 
&lt;br&gt;&amp;gt; list'&amp;quot;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Seems like EclipseLink always needs a discriminator column even if the 
&lt;br&gt;&amp;gt; inheritance strategy is
&lt;br&gt;&amp;gt; JOIN or TABLE_PER_CLASS.
&lt;br&gt;&amp;gt; Is this correct?
&lt;br&gt;&amp;gt; And if so, what is it good/needed for?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; [EclipseLink 1.2.0, database=MySQL 5]
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Kind Regards,
&lt;br&gt;&amp;gt; Michael
&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; eclipselink-users mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26542060&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eclipselink-users@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://dev.eclipse.org/mailman/listinfo/eclipselink-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://dev.eclipse.org/mailman/listinfo/eclipselink-users&lt;/a&gt;&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;eclipselink-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26542060&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eclipselink-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://dev.eclipse.org/mailman/listinfo/eclipselink-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://dev.eclipse.org/mailman/listinfo/eclipselink-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/EclipseLink---Users-f26658.html&quot; embed=&quot;fixTarget[26658]&quot; target=&quot;_top&quot; &gt;EclipseLink - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Discriminator-and-Inheritance.strategy-tp26541229p26542060.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26541274</id>
	<title>multible fetch joins</title>
	<published>2009-11-27T03:37:22Z</published>
	<updated>2009-11-27T03:37:22Z</updated>
	<author>
		<name>Michael Simons</name>
	</author>
	<content type="html">Hello [EclipseLink 1.2.0, database=MySQL 5],
&lt;br&gt;&lt;br&gt;I'm trying to port a client/server application first to JPA to enable the 3-tier migration.
&lt;br&gt;At the moment I try to use EclipseLink as JPA implementation.
&lt;br&gt;&lt;br&gt;EclipseLink 1.2.0 does not support multible fetch joins like
&lt;br&gt;select a from A a fetch join A.b b ...
&lt;br&gt;because the alias 'b' is already denied.
&lt;br&gt;&lt;br&gt;Will this be supported in the 2.x of EclipseLink?
&lt;br&gt;&lt;br&gt;Kind Regards,
&lt;br&gt;Michael
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;eclipselink-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26541274&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eclipselink-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://dev.eclipse.org/mailman/listinfo/eclipselink-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://dev.eclipse.org/mailman/listinfo/eclipselink-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/EclipseLink---Users-f26658.html&quot; embed=&quot;fixTarget[26658]&quot; target=&quot;_top&quot; &gt;EclipseLink - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/multible-fetch-joins-tp26541274p26541274.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26541229</id>
	<title>Discriminator and Inheritance.strategy</title>
	<published>2009-11-27T03:33:15Z</published>
	<updated>2009-11-27T03:33:15Z</updated>
	<author>
		<name>Michael Simons</name>
	</author>
	<content type="html">Hello,
&lt;br&gt;&lt;br&gt;I'm trying to port a client/server application first to JPA to enable the 3-tier migration.
&lt;br&gt;At the moment I try to use EclipseLink as JPA implementation.
&lt;br&gt;The first exception I fall over said &amp;quot;Unknown column 't2.DTYPE' in 'field list'&amp;quot;
&lt;br&gt;&lt;br&gt;Seems like EclipseLink always needs a discriminator column even if the inheritance strategy is
&lt;br&gt;JOIN or TABLE_PER_CLASS.
&lt;br&gt;Is this correct?
&lt;br&gt;And if so, what is it good/needed for?
&lt;br&gt;&lt;br&gt;[EclipseLink 1.2.0, database=MySQL 5]
&lt;br&gt;&lt;br&gt;Kind Regards,
&lt;br&gt;Michael
&lt;br&gt;_______________________________________________
&lt;br&gt;eclipselink-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26541229&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eclipselink-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://dev.eclipse.org/mailman/listinfo/eclipselink-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://dev.eclipse.org/mailman/listinfo/eclipselink-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/EclipseLink---Users-f26658.html&quot; embed=&quot;fixTarget[26658]&quot; target=&quot;_top&quot; &gt;EclipseLink - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Discriminator-and-Inheritance.strategy-tp26541229p26541229.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26537349</id>
	<title>Re: Moxy &amp; JPA with Eclipselink</title>
	<published>2009-11-26T18:48:31Z</published>
	<updated>2009-11-26T18:48:31Z</updated>
	<author>
		<name>Adam Stroud</name>
	</author>
	<content type="html">Blaise:
&lt;br&gt;&lt;br&gt;Thanks for the reply. &amp;nbsp;I have not come across any issues yet as I have
&lt;br&gt;just started development. &amp;nbsp;I am developing a RESTful web service that
&lt;br&gt;will receive XML that will need to be mapped to JPA entities that will
&lt;br&gt;be persisted. &amp;nbsp;My initial thought was to create an XSD to define the web
&lt;br&gt;service traffic, and run JAXB over this to create Java classes. &amp;nbsp;I would
&lt;br&gt;then define the entities to be persisted and manually write the code to
&lt;br&gt;convert the XML to the entities. &amp;nbsp;This just didnt feel right so I
&lt;br&gt;started to see if there was a better way. &amp;nbsp;It seems that the JAXB
&lt;br&gt;annotations might be what I am looking for. &amp;nbsp;From what I have seen thus
&lt;br&gt;far, I will be able to both marshal and unmarshal the XML into my
&lt;br&gt;entities. &amp;nbsp;The only feature I would still like to have is the XSD. &amp;nbsp;It
&lt;br&gt;does not look like I can generate an XSD from JAXB annotated classes.
&lt;br&gt;So, if I want the XSD it looks like I need to maintain multiple models.
&lt;br&gt;&amp;nbsp;Any other ideas?
&lt;br&gt;&lt;br&gt;Thanks
&lt;br&gt;Adam
&lt;br&gt;&lt;br&gt;Blaise Doughan wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi Adam,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; My apologies for not getting back to the thread. &amp;nbsp;If you let me know the
&lt;br&gt;&amp;gt; issues you are encountering I will help you out.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; You should be able to do this in one model. &amp;nbsp;Below is a link to an
&lt;br&gt;&amp;gt; example I am working on to do just what you are describing with the
&lt;br&gt;&amp;gt; EclipseLink 2.0 APIs:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; * &lt;a href=&quot;http://wiki.eclipse.org/EclipseLink/Examples/MOXy/JPA&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://wiki.eclipse.org/EclipseLink/Examples/MOXy/JPA&lt;/a&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; It is still a work in progress, some other things you will find useful:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; * /*Bidirectional Relationship Support*/
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; Today we will be checking in an XMLInvereseReferenceMapping, this
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; mapping will allow you map back pointers.
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; * /*Composite Key Support*/
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; EclipseLink 2.0 now supports composite keys on all the key based
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; mappings. &amp;nbsp;I still need to update the example with this.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; -Blaise
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Adam Stroud wrote:
&lt;br&gt;&amp;gt;&amp;gt; All:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I am developing an application that uses Eclipselink both JAXB (Moxy)
&lt;br&gt;&amp;gt;&amp;gt; and JPA. &amp;nbsp;My question is what is the best way to go from my current
&lt;br&gt;&amp;gt;&amp;gt; data model to entities and XML without maintaining three different
&lt;br&gt;&amp;gt;&amp;gt; models. &amp;nbsp;I saw an earlier post to the mailing list here -&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://dev.eclipse.org/mhonarc/lists/eclipselink-users/msg03473.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://dev.eclipse.org/mhonarc/lists/eclipselink-users/msg03473.html&lt;/a&gt;,
&lt;br&gt;&amp;gt;&amp;gt; but it does not look like the examples referenced in the reply were
&lt;br&gt;&amp;gt;&amp;gt; posted to the list. &amp;nbsp;Any input/guidance would be appreciated.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Thanks
&lt;br&gt;&amp;gt;&amp;gt; Adam
&lt;br&gt;&amp;gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt;&amp;gt; eclipselink-users mailing list
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26537349&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eclipselink-users@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;https://dev.eclipse.org/mailman/listinfo/eclipselink-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://dev.eclipse.org/mailman/listinfo/eclipselink-users&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; 
&lt;/div&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;eclipselink-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26537349&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eclipselink-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://dev.eclipse.org/mailman/listinfo/eclipselink-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://dev.eclipse.org/mailman/listinfo/eclipselink-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/EclipseLink---Users-f26658.html&quot; embed=&quot;fixTarget[26658]&quot; target=&quot;_top&quot; &gt;EclipseLink - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Moxy---JPA-with-Eclipselink-tp26503736p26537349.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26534066</id>
	<title>Check in for Bug 296010 Getting nullpointer during starting of javax.persistence</title>
	<published>2009-11-26T11:36:52Z</published>
	<updated>2009-11-26T11:36:52Z</updated>
	<author>
		<name>Shaun Smith</name>
	</author>
	<content type="html">&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD HTML 4.01 Transitional//EN&quot;&gt;
&lt;html&gt;
&lt;head&gt;
&lt;/head&gt;
&lt;body bgcolor=&quot;#ffffff&quot; text=&quot;#000000&quot;&gt;
&lt;a href=&quot;https://bugs.eclipse.org/bugs/show_bug.cgi?id=296010&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://bugs.eclipse.org/bugs/show_bug.cgi?id=296010&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
When the javax.persistence bundle was started after o.e.p.jpa, an NPE
occurred when the EclipseLink Persistence Provider service was found
and attempted to be registered.&amp;nbsp; The map of registered providers was
uninitialized which resulted in an NPE. &lt;br&gt;
&lt;br&gt;
Tested both&amp;nbsp; manually and with OSGi SRG.&lt;br&gt;
&lt;br&gt;
Reviewed by Tom Ware&lt;br&gt;
&lt;div class=&quot;moz-signature&quot;&gt;-- &lt;br&gt;
&lt;a href=&quot;http://www.oracle.com&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;&lt;img src=&quot;http://old.nabble.com/attachment/26534066/0/oracle_sig_logo.gif&quot; alt=&quot;Oracle&quot; border=&quot;0&quot; height=&quot;26&quot; width=&quot;114&quot;&gt;&lt;/a&gt;&lt;br&gt;
&lt;font color=&quot;#666666&quot; face=&quot;Verdana, Arial, Helvetica, sans-serif&quot; size=&quot;2&quot;&gt;Shaun Smith | Principal Product Manager&lt;br&gt;
Phone: +19055023094 &lt;br&gt;
&lt;font color=&quot;#ff0000&quot;&gt;Oracle&lt;/font&gt; Server Technologies, Oracle TopLink&lt;br&gt;
ORACLE Canada | 110 Matheson Boulevard West, Suite 100, Mississauga,
Ontario | L5R 3P4&lt;/font&gt;
&lt;br&gt;
&lt;a href=&quot;http://www.oracle.com/commitment&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;&lt;img src=&quot;http://old.nabble.com/attachment/26534066/1/green-for-email-sig_0.gif&quot; alt=&quot;Green Oracle&quot; align=&quot;absmiddle&quot; border=&quot;0&quot; height=&quot;28&quot; width=&quot;44&quot;&gt;&lt;/a&gt;
&lt;font color=&quot;#4b7d42&quot; face=&quot;Verdana, Arial, Helvetica, sans-serif&quot; size=&quot;1&quot;&gt;Oracle is committed to developing practices and products that
help protect the environment&lt;/font&gt;
&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;
&lt;br /&gt; &lt;br /&gt; &lt;br /&gt;_______________________________________________
&lt;br&gt;eclipselink-dev mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26534066&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eclipselink-dev@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/EclipseLink---Dev-f26332.html&quot; embed=&quot;fixTarget[26332]&quot; target=&quot;_top&quot; &gt;EclipseLink - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Check-in-for-Bug-296010-Getting-nullpointer-during-starting-of-javax.persistence-tp26534066p26534066.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26533347</id>
	<title>EclipseLink 2.1.0 Feature Planning</title>
	<published>2009-11-26T10:24:25Z</published>
	<updated>2009-11-26T10:24:25Z</updated>
	<author>
		<name>Peter Krogh</name>
	</author>
	<content type="html">Hi All,
&lt;br&gt;&lt;br&gt;The EclipseLink project is starting to plan feature work for its 2.1.0 release, and we are asking for your help. &amp;nbsp;Please let us know what features you would like to see added to EclipseLink. &amp;nbsp;The best way to do this is through bugzilla.
&lt;br&gt;&lt;br&gt;If you want to see a particular new feature added to EclipseLink, please search for it in bugzilla.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; If there is not a current enhancement request tracking your issue, add it and vote for it.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; If you see an existing enhancement request that you would like to see in 2.1.0 please vote for it.
&lt;br&gt;&lt;br&gt;Thank you in advance for your participation in 2.1.0.
&lt;br&gt;&lt;br&gt;Peter Krogh
&lt;br&gt;_______________________________________________
&lt;br&gt;eclipselink-dev mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26533347&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eclipselink-dev@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/EclipseLink---Dev-f26332.html&quot; embed=&quot;fixTarget[26332]&quot; target=&quot;_top&quot; &gt;EclipseLink - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/EclipseLink-2.1.0-Feature-Planning-tp26533347p26533347.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26533350</id>
	<title>EclipseLink 2.1.0 Feature Planning</title>
	<published>2009-11-26T10:24:25Z</published>
	<updated>2009-11-26T10:24:25Z</updated>
	<author>
		<name>Peter Krogh</name>
	</author>
	<content type="html">Hi All,
&lt;br&gt;&lt;br&gt;The EclipseLink project is starting to plan feature work for its 2.1.0 release, and we are asking for your help. &amp;nbsp;Please let us know what features you would like to see added to EclipseLink. &amp;nbsp;The best way to do this is through bugzilla.
&lt;br&gt;&lt;br&gt;If you want to see a particular new feature added to EclipseLink, please search for it in bugzilla.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; If there is not a current enhancement request tracking your issue, add it and vote for it.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; If you see an existing enhancement request that you would like to see in 2.1.0 please vote for it.
&lt;br&gt;&lt;br&gt;Thank you in advance for your participation in 2.1.0.
&lt;br&gt;&lt;br&gt;Peter Krogh
&lt;br&gt;_______________________________________________
&lt;br&gt;eclipselink-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26533350&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eclipselink-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://dev.eclipse.org/mailman/listinfo/eclipselink-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://dev.eclipse.org/mailman/listinfo/eclipselink-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/EclipseLink---Users-f26658.html&quot; embed=&quot;fixTarget[26658]&quot; target=&quot;_top&quot; &gt;EclipseLink - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/EclipseLink-2.1.0-Feature-Planning-tp26533350p26533350.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26532563</id>
	<title>BUILD STATUS:: trunk cb build has test failures!</title>
	<published>2009-11-26T09:20:06Z</published>
	<updated>2009-11-26T09:20:06Z</updated>
	<author>
		<name>Eric Gwin</name>
	</author>
	<content type="html">Build summary for 2.0.0.v20091126-r5904
&lt;br&gt;-----------------------------------
&lt;br&gt;TEST-CORE-SRG
&lt;br&gt;&amp;nbsp; Tests run:683 Failures:0 Errors:0
&lt;br&gt;TEST-JPA-SRG
&lt;br&gt;&amp;nbsp; Tests run:192 Failures:0 Errors:0
&lt;br&gt;TEST-MOXY-SRG
&lt;br&gt;&amp;nbsp; Tests run:458 Failures:0 Errors:5
&lt;br&gt;TEST-SDO-SRG
&lt;br&gt;&amp;nbsp; Tests run:120 Failures:0 Errors:0
&lt;br&gt;TEST-DBWS-SRG
&lt;br&gt;&amp;nbsp; Tests run:14 Failures:0 Errors:0
&lt;br&gt;TEST-DBWS-UTILS-SRG
&lt;br&gt;&amp;nbsp; Tests run:22 Failures:0 Errors:0
&lt;br&gt;-----------------------------------
&lt;br&gt;&lt;br&gt;Build log: (/shared/rt/eclipselink/logs/bsb-trunk_cb_091126-1200.log)
&lt;br&gt;&amp;nbsp; &amp;nbsp; 
&lt;br&gt;Build logs can be found on the download server at:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://www.eclipse.org/eclipselink/downloads/build-failures.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.eclipse.org/eclipselink/downloads/build-failures.php&lt;/a&gt;&lt;br&gt;-----------------------------------
&lt;br&gt;&lt;br&gt;SVN Changes since Last Build:
&lt;br&gt;------------------------------------------------------------------------
&lt;br&gt;r5904 | bdoughan | 2009-11-26 11:10:40 -0500 (Thu, 26 Nov 2009)
&lt;br&gt;Changed paths:
&lt;br&gt;&amp;nbsp; &amp;nbsp;M /trunk/moxy/eclipselink.moxy.test/src/org/eclipse/persistence/testing/oxm/mappings/XMLMappingTestCases.java
&lt;br&gt;&amp;nbsp; &amp;nbsp;M /trunk/moxy/eclipselink.moxy.test/src/org/eclipse/persistence/testing/oxm/mappings/namespaces/ExtraNamespacesBug6004272TestCases.java
&lt;br&gt;&amp;nbsp; &amp;nbsp;M /trunk/moxy/eclipselink.moxy.test/src/org/eclipse/persistence/testing/oxm/mappings/simpletypes/documentpreservation/DocumentPreservationTestCases.java
&lt;br&gt;------------------------------------------------------------------------
&lt;br&gt;_______________________________________________
&lt;br&gt;eclipselink-dev mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26532563&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eclipselink-dev@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/EclipseLink---Dev-f26332.html&quot; embed=&quot;fixTarget[26332]&quot; target=&quot;_top&quot; &gt;EclipseLink - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/BUILD-STATUS%3A%3A-trunk-cb-build-has-test-failures%21-tp26532563p26532563.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26531310</id>
	<title>Re: Error in EMQueryJUnitTestSuite.testcreateNativeQueryWithSelectSQL on SAP NetWeaver</title>
	<published>2009-11-26T07:49:11Z</published>
	<updated>2009-11-26T07:49:11Z</updated>
	<author>
		<name>Yiping Zhao</name>
	</author>
	<content type="html">Hi Tom,
&lt;br&gt;&lt;br&gt;We did find the test error on other servers, but we haven't had time to 
&lt;br&gt;fix it yet. so the testcase needs to be fixed like:
&lt;br&gt;&lt;br&gt;// this may fail with some drivers
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; int result = 0;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; try {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; result = query1.executeUpdate();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; } catch (RuntimeException ex) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; rollbackTransaction(em);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; closeEntityManager(em);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; em = createEntityManager();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; beginTransaction(em);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;Yiping
&lt;br&gt;&lt;br&gt;On 11/26/2009 10:10 AM, Tom Ware wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; If the entity manager is transaction scoped, I think Sabine is right. &amp;nbsp;
&lt;br&gt;&amp;gt; The entity manager should be closed when the transaction either 
&lt;br&gt;&amp;gt; commits or rolls back. &amp;nbsp;I wonder why that is not happening on other 
&lt;br&gt;&amp;gt; servers. &amp;nbsp;(you'll notice query1.executeUpdate() is designed to fail)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; -Tom
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; yiping zhao wrote:
&lt;br&gt;&amp;gt;&amp;gt; Hi Sabine,
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; In the test framework, by default the entity manager is injected in 
&lt;br&gt;&amp;gt;&amp;gt; sessionbean, it's transaction-scoped.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp;&amp;gt;From the stacktrace, it looks like that there is issue when 
&lt;br&gt;&amp;gt;&amp;gt; executing &amp;quot;result = query1.executeUpdate();&amp;quot;, then somehow your SAP 
&lt;br&gt;&amp;gt;&amp;gt; NetWeaver application server closes the entity manager, after that 
&lt;br&gt;&amp;gt;&amp;gt; you get the exception &amp;quot;java.lang.IllegalStateException: Attempting to 
&lt;br&gt;&amp;gt;&amp;gt; execute an operation on a closed EntityManager&amp;quot; when executing 
&lt;br&gt;&amp;gt;&amp;gt; &amp;quot;query2.executeUpdate();&amp;quot;, so this sounds like a server issue.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Yiping
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; On 11/26/2009 4:34 AM, Heider, Sabine wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Hi Tom,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; I'm not really familiar with the details of test framework either, 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; but I guess the entity manager is taken from the TestRunnerBean:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; @Stateless(name=&amp;quot;TestRunner&amp;quot;, mappedName=&amp;quot;TestRunner&amp;quot;)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; @Remote(TestRunner.class)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; @TransactionManagement(TransactionManagementType.BEAN)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; public class TestRunnerBean implements TestRunner {
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /** The entity manager for the test is injected and passed 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; to the test server platform. */
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; @PersistenceContext
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; private EntityManager entityManager;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; /** The entity manager factory for the test is injected and 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; passed to the test server platform. */
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; @PersistenceUnit
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; private EntityManagerFactory entityManagerFactory;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; So yes, it is transaction-scoped.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Best regards,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Sabine
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; From: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26531310&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eclipselink-dev-bounces@...&lt;/a&gt; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26531310&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eclipselink-dev-bounces@...&lt;/a&gt;] On Behalf Of Tom Ware
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Sent: Mittwoch, 25. November 2009 14:07
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; To: Dev mailing list for Eclipse Persistence Services
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Subject: Re: [eclipselink-dev] Error in 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; EMQueryJUnitTestSuite.testcreateNativeQueryWithSelectSQL on SAP 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; NetWeaver
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Hi Sabine,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp;I am not familiar with how the entity manager for the tests are 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; created. &amp;nbsp;The part of the spec you are referring to is for 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Transaction-scoped entity managers. &amp;nbsp; Is the entity manager used in 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; this test created in such a way that it will be transaction-scoped 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; on all servers?
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; -Tom
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Heider, Sabine wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; I'd like to get your opinion on an error I get when running the JPA 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; server tests inside an SAP NetWeaver application server (stack 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; shortened, executed on current trunk):
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; java.lang.IllegalStateException: Attempting to execute an operation 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; on a closed EntityManager.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; at 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; org.eclipse.persistence.internal.jpa.EntityManagerImpl.verifyOpen(EntityManagerImpl.java:1516) 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; at 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; org.eclipse.persistence.internal.jpa.EJBQueryImpl.executeUpdate(EJBQueryImpl.java:492) 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; at 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; org.eclipse.persistence.testing.tests.jpa.relationships.EMQueryJUnitTestSuite.testcreateNativeQueryWithSelectSQL(EMQueryJUnitTestSuite.java:121) 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; at 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; org.eclipse.persistence.testing.framework.junit.JUnitTestCase.runBareServer(JUnitTestCase.java:463) 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; at 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; org.eclipse.persistence.testing.framework.server.TestRunnerBean.runTest(TestRunnerBean.java:87) 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; I run the test against a MySQL database. The MySQL driver throws an 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; SQLException in EMQueryJUnitTestSuite line 114: Can not issue 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; executeUpdate() for SELECTs.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Consequently, I end up in the catch block where the current 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; transaction is rolled back.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Chapter 7.9.1 of the JPA specification says:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;quot;After the JTA transaction has completed (either by transaction 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; commit or rollback), The container
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; closes the entity manager by calling EntityManager.close.&amp;quot;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Apparently, this is what the JPA container in NetWeaver does. With 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; the closed entity manager, however, query2 becomes unusable.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; In my opinion, it's an error of the test rather than of the JPA 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; container, but I might be wrong. What do you think?
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Thanks and best regards,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Sabine
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; *Sabine Heider
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; **SAP AG
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; *Pflichtangaben/Mandatory Disclosure Statements:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; _http://www.sap.com/company/legal/impressum.epx_
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; ------------------------------------------------------------------------ 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; eclipselink-dev mailing list
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26531310&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eclipselink-dev@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; eclipselink-dev mailing list
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26531310&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eclipselink-dev@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; eclipselink-dev mailing list
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26531310&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eclipselink-dev@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; ------------------------------------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt;&amp;gt; eclipselink-dev mailing list
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26531310&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eclipselink-dev@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&lt;/a&gt;&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; eclipselink-dev mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26531310&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eclipselink-dev@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&lt;/a&gt;&lt;/div&gt;_______________________________________________
&lt;br&gt;eclipselink-dev mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26531310&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eclipselink-dev@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/EclipseLink---Dev-f26332.html&quot; embed=&quot;fixTarget[26332]&quot; target=&quot;_top&quot; &gt;EclipseLink - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Error-in-EMQueryJUnitTestSuite.testcreateNativeQueryWithSelectSQL-on-SAP-NetWeaver-tp26512010p26531310.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26530779</id>
	<title>Re: Error in EMQueryJUnitTestSuite.testcreateNativeQueryWithSelectSQL on SAP NetWeaver</title>
	<published>2009-11-26T07:10:53Z</published>
	<updated>2009-11-26T07:10:53Z</updated>
	<author>
		<name>tware</name>
	</author>
	<content type="html">If the entity manager is transaction scoped, I think Sabine is right. &amp;nbsp;The 
&lt;br&gt;entity manager should be closed when the transaction either commits or rolls 
&lt;br&gt;back. &amp;nbsp;I wonder why that is not happening on other servers. &amp;nbsp;(you'll notice 
&lt;br&gt;query1.executeUpdate() is designed to fail)
&lt;br&gt;&lt;br&gt;-Tom
&lt;br&gt;&lt;br&gt;yiping zhao wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi Sabine,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; In the test framework, by default the entity manager is injected in 
&lt;br&gt;&amp;gt; sessionbean, it's transaction-scoped.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp;&amp;gt;From the stacktrace, it looks like that there is issue when executing 
&lt;br&gt;&amp;gt; &amp;quot;result = query1.executeUpdate();&amp;quot;, then somehow your SAP NetWeaver 
&lt;br&gt;&amp;gt; application server closes the entity manager, after that you get the 
&lt;br&gt;&amp;gt; exception &amp;quot;java.lang.IllegalStateException: Attempting to execute an 
&lt;br&gt;&amp;gt; operation on a closed EntityManager&amp;quot; when executing 
&lt;br&gt;&amp;gt; &amp;quot;query2.executeUpdate();&amp;quot;, so this sounds like a server issue.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Yiping
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; On 11/26/2009 4:34 AM, Heider, Sabine wrote:
&lt;br&gt;&amp;gt;&amp;gt; Hi Tom,
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I'm not really familiar with the details of test framework either, but I guess the entity manager is taken from the TestRunnerBean:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; @Stateless(name=&amp;quot;TestRunner&amp;quot;, mappedName=&amp;quot;TestRunner&amp;quot;)
&lt;br&gt;&amp;gt;&amp;gt; @Remote(TestRunner.class)
&lt;br&gt;&amp;gt;&amp;gt; @TransactionManagement(TransactionManagementType.BEAN)
&lt;br&gt;&amp;gt;&amp;gt; public class TestRunnerBean implements TestRunner {
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; /** The entity manager for the test is injected and passed to the test server platform. */
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; @PersistenceContext
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; private EntityManager entityManager;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; /** The entity manager factory for the test is injected and passed to the test server platform. */
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; @PersistenceUnit
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; private EntityManagerFactory entityManagerFactory;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; So yes, it is transaction-scoped. 
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Best regards,
&lt;br&gt;&amp;gt;&amp;gt; Sabine
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt;&amp;gt; From: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26530779&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eclipselink-dev-bounces@...&lt;/a&gt; [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26530779&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eclipselink-dev-bounces@...&lt;/a&gt;] On Behalf Of Tom Ware
&lt;br&gt;&amp;gt;&amp;gt; Sent: Mittwoch, 25. November 2009 14:07
&lt;br&gt;&amp;gt;&amp;gt; To: Dev mailing list for Eclipse Persistence Services
&lt;br&gt;&amp;gt;&amp;gt; Subject: Re: [eclipselink-dev] Error in EMQueryJUnitTestSuite.testcreateNativeQueryWithSelectSQL on SAP NetWeaver
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Hi Sabine,
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp;I am not familiar with how the entity manager for the tests are created. &amp;nbsp;The 
&lt;br&gt;&amp;gt;&amp;gt; part of the spec you are referring to is for Transaction-scoped entity managers. 
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; Is the entity manager used in this test created in such a way that it will be 
&lt;br&gt;&amp;gt;&amp;gt; transaction-scoped on all servers?
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; -Tom
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Heider, Sabine wrote:
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; I'd like to get your opinion on an error I get when running the JPA 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; server tests inside an SAP NetWeaver application server (stack 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; shortened, executed on current trunk):
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; java.lang.IllegalStateException: Attempting to execute an operation on a 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; closed EntityManager.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; at 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; org.eclipse.persistence.internal.jpa.EntityManagerImpl.verifyOpen(EntityManagerImpl.java:1516)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; at 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; org.eclipse.persistence.internal.jpa.EJBQueryImpl.executeUpdate(EJBQueryImpl.java:492)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; at 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; org.eclipse.persistence.testing.tests.jpa.relationships.EMQueryJUnitTestSuite.testcreateNativeQueryWithSelectSQL(EMQueryJUnitTestSuite.java:121)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; at 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; org.eclipse.persistence.testing.framework.junit.JUnitTestCase.runBareServer(JUnitTestCase.java:463)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; at 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; org.eclipse.persistence.testing.framework.server.TestRunnerBean.runTest(TestRunnerBean.java:87)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; I run the test against a MySQL database. The MySQL driver throws an 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; SQLException in EMQueryJUnitTestSuite line 114: Can not issue 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; executeUpdate() for SELECTs.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Consequently, I end up in the catch block where the current transaction 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; is rolled back.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Chapter 7.9.1 of the JPA specification says:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;quot;After the JTA transaction has completed (either by transaction commit 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; or rollback), The container
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; closes the entity manager by calling EntityManager.close.&amp;quot;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Apparently, this is what the JPA container in NetWeaver does. With the 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; closed entity manager, however, query2 becomes unusable.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; In my opinion, it's an error of the test rather than of the JPA 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; container, but I might be wrong. What do you think?
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Thanks and best regards,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Sabine
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; *Sabine Heider
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; **SAP AG
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; *Pflichtangaben/Mandatory Disclosure Statements:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; _http://www.sap.com/company/legal/impressum.epx_
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; ------------------------------------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; eclipselink-dev mailing list
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26530779&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eclipselink-dev@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt;&amp;gt; eclipselink-dev mailing list
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26530779&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eclipselink-dev@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt;&amp;gt; eclipselink-dev mailing list
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26530779&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eclipselink-dev@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; ------------------------------------------------------------------------
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; eclipselink-dev mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26530779&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eclipselink-dev@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&lt;/a&gt;&lt;/div&gt;_______________________________________________
&lt;br&gt;eclipselink-dev mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26530779&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eclipselink-dev@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/EclipseLink---Dev-f26332.html&quot; embed=&quot;fixTarget[26332]&quot; target=&quot;_top&quot; &gt;EclipseLink - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Error-in-EMQueryJUnitTestSuite.testcreateNativeQueryWithSelectSQL-on-SAP-NetWeaver-tp26512010p26530779.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26530655</id>
	<title>Re: Error in EMQueryJUnitTestSuite.testcreateNativeQueryWithSelectSQL on SAP NetWeaver</title>
	<published>2009-11-26T07:03:04Z</published>
	<updated>2009-11-26T07:03:04Z</updated>
	<author>
		<name>Yiping Zhao</name>
	</author>
	<content type="html">&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD HTML 4.01 Transitional//EN&quot;&gt;
&lt;html&gt;
&lt;head&gt;
  &lt;meta content=&quot;text/html;charset=ISO-8859-1&quot; http-equiv=&quot;Content-Type&quot;&gt;
&lt;/head&gt;
&lt;body bgcolor=&quot;#ffffff&quot; text=&quot;#000000&quot;&gt;
Hi Sabine,&lt;br&gt;
&lt;br&gt;
In the test framework, by default the entity manager is injected in
sessionbean, it's transaction-scoped. &lt;br&gt;
&lt;br&gt;
&gt;From the stacktrace, it looks like that there is issue when executing
&quot;result = query1.executeUpdate();&quot;, then somehow your SAP NetWeaver
application server closes the entity manager, after that you get the
exception &quot;java.lang.IllegalStateException: Attempting to execute an
operation on a closed EntityManager&quot; when executing
&quot;query2.executeUpdate();&quot;, so this sounds like a server issue.&lt;br&gt;
&lt;br&gt;
Yiping&lt;br&gt;
&lt;br&gt;
On 11/26/2009 4:34 AM, Heider, Sabine wrote:
&lt;blockquote cite=&quot;mid:ADA3476EA867D7489E90B4106AB1F3C502071DDCFD@DEWDFECCR09.wdf.sap.corp&quot; type=&quot;cite&quot;&gt;
  &lt;pre wrap=&quot;&quot;&gt;Hi Tom,

I'm not really familiar with the details of test framework either, but I guess the entity manager is taken from the TestRunnerBean:

@Stateless(name=&quot;TestRunner&quot;, mappedName=&quot;TestRunner&quot;)
@Remote(TestRunner.class)
@TransactionManagement(TransactionManagementType.BEAN)
public class TestRunnerBean implements TestRunner {
    
    /** The entity manager for the test is injected and passed to the test server platform. */
    @PersistenceContext
    private EntityManager entityManager;

    /** The entity manager factory for the test is injected and passed to the test server platform. */
    @PersistenceUnit
    private EntityManagerFactory entityManagerFactory;

So yes, it is transaction-scoped. 

Best regards,
Sabine

-----Original Message-----
From: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26530655&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eclipselink-dev-bounces@...&lt;/a&gt; [&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26530655&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eclipselink-dev-bounces@...&lt;/a&gt;] On Behalf Of Tom Ware
Sent: Mittwoch, 25. November 2009 14:07
To: Dev mailing list for Eclipse Persistence Services
Subject: Re: [eclipselink-dev] Error in EMQueryJUnitTestSuite.testcreateNativeQueryWithSelectSQL on SAP NetWeaver

Hi Sabine,

   I am not familiar with how the entity manager for the tests are created.  The 
part of the spec you are referring to is for Transaction-scoped entity managers. 
  Is the entity manager used in this test created in such a way that it will be 
transaction-scoped on all servers?

-Tom

Heider, Sabine wrote:
  &lt;/pre&gt;
  &lt;blockquote type=&quot;cite&quot;&gt;
    &lt;pre wrap=&quot;&quot;&gt;Hi,
 
I'd like to get your opinion on an error I get when running the JPA 
server tests inside an SAP NetWeaver application server (stack 
shortened, executed on current trunk):
 
java.lang.IllegalStateException: Attempting to execute an operation on a 
closed EntityManager.
at 
org.eclipse.persistence.internal.jpa.EntityManagerImpl.verifyOpen(EntityManagerImpl.java:1516)
at 
org.eclipse.persistence.internal.jpa.EJBQueryImpl.executeUpdate(EJBQueryImpl.java:492)
at 
org.eclipse.persistence.testing.tests.jpa.relationships.EMQueryJUnitTestSuite.testcreateNativeQueryWithSelectSQL(EMQueryJUnitTestSuite.java:121)
at 
org.eclipse.persistence.testing.framework.junit.JUnitTestCase.runBareServer(JUnitTestCase.java:463)
at 
org.eclipse.persistence.testing.framework.server.TestRunnerBean.runTest(TestRunnerBean.java:87)
 
I run the test against a MySQL database. The MySQL driver throws an 
SQLException in EMQueryJUnitTestSuite line 114: Can not issue 
executeUpdate() for SELECTs.
Consequently, I end up in the catch block where the current transaction 
is rolled back.
 
Chapter 7.9.1 of the JPA specification says:
&quot;After the JTA transaction has completed (either by transaction commit 
or rollback), The container
closes the entity manager by calling EntityManager.close.&quot;
 
Apparently, this is what the JPA container in NetWeaver does. With the 
closed entity manager, however, query2 becomes unusable.
 
In my opinion, it's an error of the test rather than of the JPA 
container, but I might be wrong. What do you think?
 
Thanks and best regards,
Sabine
 
*Sabine Heider
**SAP AG

*Pflichtangaben/Mandatory Disclosure Statements:
_&lt;a class=&quot;moz-txt-link-freetext&quot; href=&quot;http://www.sap.com/company/legal/impressum.epx_&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.sap.com/company/legal/impressum.epx_&lt;/a&gt;
 
 
 


------------------------------------------------------------------------

_______________________________________________
eclipselink-dev mailing list
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26530655&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eclipselink-dev@...&lt;/a&gt;
&lt;a class=&quot;moz-txt-link-freetext&quot; href=&quot;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&lt;/a&gt;
    &lt;/pre&gt;
  &lt;/blockquote&gt;
  &lt;pre wrap=&quot;&quot;&gt;&lt;!----&gt;_______________________________________________
eclipselink-dev mailing list
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26530655&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eclipselink-dev@...&lt;/a&gt;
&lt;a class=&quot;moz-txt-link-freetext&quot; href=&quot;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&lt;/a&gt;
_______________________________________________
eclipselink-dev mailing list
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26530655&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eclipselink-dev@...&lt;/a&gt;
&lt;a class=&quot;moz-txt-link-freetext&quot; href=&quot;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&lt;/a&gt;
  &lt;/pre&gt;
&lt;/blockquote&gt;
&lt;/body&gt;
&lt;/html&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;eclipselink-dev mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26530655&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eclipselink-dev@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/EclipseLink---Dev-f26332.html&quot; embed=&quot;fixTarget[26332]&quot; target=&quot;_top&quot; &gt;EclipseLink - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Error-in-EMQueryJUnitTestSuite.testcreateNativeQueryWithSelectSQL-on-SAP-NetWeaver-tp26512010p26530655.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26530032</id>
	<title>Re: concat function within constructor expression fails</title>
	<published>2009-11-26T06:14:20Z</published>
	<updated>2009-11-26T06:14:20Z</updated>
	<author>
		<name>tware</name>
	</author>
	<content type="html">Hi Ravi,
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;This looks like a bug. &amp;nbsp;Please file a bug in Bugzilla.
&lt;br&gt;&lt;br&gt;-Tom
&lt;br&gt;&lt;br&gt;Ravi Venkatesan wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt; I recently moved a project from Hibernate to EclipseLink as the JPA 
&lt;br&gt;&amp;gt; provider. &amp;nbsp;One of the named queries I have uses the concat function 
&lt;br&gt;&amp;gt; within a constructor expression that is part of a named query. &amp;nbsp;This 
&lt;br&gt;&amp;gt; however seems to break in EclipseLink. &amp;nbsp;Based on the stack trace where 
&lt;br&gt;&amp;gt; it is looking for a constructor excluding the field that uses the 
&lt;br&gt;&amp;gt; concatenated field it looks like it totally ignores the concatenated 
&lt;br&gt;&amp;gt; field from the query. &amp;nbsp;Any solutions will help.
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; Here is the named query:
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; @NamedQuery
&lt;br&gt;&amp;gt; (name = &amp;quot;findAbhyasisForWorldMap&amp;quot;, query = &amp;quot;SELECT NEW 
&lt;br&gt;&amp;gt; org.srcm.beans.wrapper.MapBeanWrapper(a.id &amp;lt;&lt;a href=&quot;http://a.id&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://a.id&lt;/a&gt;&amp;gt;, 
&lt;br&gt;&amp;gt; a.location.lat, a.location.lon, concat(a.printName,a.lastName)) FROM 
&lt;br&gt;&amp;gt; Abhyasi a&amp;quot;)
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; Here is the stack trace:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Exception [EclipseLink-6137] (Eclipse Persistence Services - 
&lt;br&gt;&amp;gt; 1.2.0.v20091016-r5565):
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; _org.eclipse.persistence.exceptions.QueryException_
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Exception Description: An Exception was thrown while executing a 
&lt;br&gt;&amp;gt; ReportQuery with a constructor expression:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; _java.lang.NoSuchMethodException_: 
&lt;br&gt;&amp;gt; org.srcm.beans.wrapper.MapBeanWrapper.&amp;lt;init&amp;gt;(java.lang.Integer, 
&lt;br&gt;&amp;gt; java.lang.Double, java.lang.Double)
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Query: ReportQuery(name=&amp;quot;findAbhyasisForWorldMap&amp;quot; referenceClass=Abhyasi 
&lt;br&gt;&amp;gt; jpql=&amp;quot;SELECT NEW org.srcm.beans.wrapper.MapBeanWrapper(a.id 
&lt;br&gt;&amp;gt; &amp;lt;&lt;a href=&quot;http://a.id&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://a.id&lt;/a&gt;&amp;gt;, a.location.lat, a.location.lon, 
&lt;br&gt;&amp;gt; concat(a.printName,a.lastName)) FROM Abhyasi a&amp;quot;)
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; at org.srcm.mms.dao.GenericDAOImpl.findByNamedQuery(
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; _GenericDAOImpl.java:70_)
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; at org.srcm.mms.dao.MapBeanDAOTest.testFindByNamedQuery(
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; _MapBeanDAOTest.java:34_)
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; at sun.reflect.NativeMethodAccessorImpl.invoke0(
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; _Native Method_)
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; at sun.reflect.NativeMethodAccessorImpl.invoke(
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; _NativeMethodAccessorImpl.java:39_)
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; at sun.reflect.DelegatingMethodAccessorImpl.invoke(
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; _DelegatingMethodAccessorImpl.java:25_)
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; at java.lang.reflect.Method.invoke(
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; _Method.java:597_)
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; at junit.framework.TestCase.runTest(
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; _TestCase.java:168_)
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; at junit.framework.TestCase.runBare(
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; _TestCase.java:134_)
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; at org.springframework.test.ConditionalTestCase.runBare(
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; _ConditionalTestCase.java:76_)
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; at 
&lt;br&gt;&amp;gt; org.springframework.test.annotation.AbstractAnnotationAwareTransactionalTests.access$001(
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; _AbstractAnnotationAwareTransactionalTests.java:71_)
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; at 
&lt;br&gt;&amp;gt; org.springframework.test.annotation.AbstractAnnotationAwareTransactionalTests$1.run(
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; _AbstractAnnotationAwareTransactionalTests.java:175_)
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; at 
&lt;br&gt;&amp;gt; org.springframework.test.annotation.AbstractAnnotationAwareTransactionalTests.runTest(
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; _AbstractAnnotationAwareTransactionalTests.java:283_)
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; at 
&lt;br&gt;&amp;gt; org.springframework.test.annotation.AbstractAnnotationAwareTransactionalTests.runTestTimed(
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; _AbstractAnnotationAwareTransactionalTests.java:254_)
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; at 
&lt;br&gt;&amp;gt; org.springframework.test.annotation.AbstractAnnotationAwareTransactionalTests.runBare(
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; _AbstractAnnotationAwareTransactionalTests.java:172_)
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; at org.springframework.test.jpa.AbstractJpaTests.runBare(
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; _AbstractJpaTests.java:174_)
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; at org.springframework.test.jpa.AbstractJpaTests.runBare(
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; _AbstractJpaTests.java:255_)
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; at junit.framework.TestResult$1.protect(
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; _TestResult.java:110_)
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; at junit.framework.TestResult.runProtected(
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; _TestResult.java:128_)
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; at junit.framework.TestResult.run(
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; _TestResult.java:113_)
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; at junit.framework.TestCase.run(
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; _TestCase.java:124_)
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; at junit.framework.TestSuite.runTest(
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; _TestSuite.java:232_)
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; at junit.framework.TestSuite.run(
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; _TestSuite.java:227_)
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; at org.junit.internal.runners.JUnit38ClassRunner.run(
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; _JUnit38ClassRunner.java:81_)
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; _JUnit4TestReference.java:46_)
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; at org.eclipse.jdt.internal.junit.runner.TestExecution.run(
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; _TestExecution.java:38_)
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; _RemoteTestRunner.java:467_)
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; _RemoteTestRunner.java:683_)
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; _RemoteTestRunner.java:390_)
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; _RemoteTestRunner.java:197_)
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; ------------------------------------------------------------------------
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; eclipselink-users mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26530032&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eclipselink-users@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://dev.eclipse.org/mailman/listinfo/eclipselink-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://dev.eclipse.org/mailman/listinfo/eclipselink-users&lt;/a&gt;&lt;/div&gt;_______________________________________________
&lt;br&gt;eclipselink-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26530032&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eclipselink-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://dev.eclipse.org/mailman/listinfo/eclipselink-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://dev.eclipse.org/mailman/listinfo/eclipselink-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/EclipseLink---Users-f26658.html&quot; embed=&quot;fixTarget[26658]&quot; target=&quot;_top&quot; &gt;EclipseLink - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/concat-function-within-constructor-expression-fails-tp26524686p26530032.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26529184</id>
	<title>Expanding  'standards' for build files.</title>
	<published>2009-11-26T05:05:44Z</published>
	<updated>2009-11-26T05:05:44Z</updated>
	<author>
		<name>Eric Gwin</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;I'm sending this out as a notification/proposal of some additional 
&lt;br&gt;standard conventions I plan on adding to our build files after the branch.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;- properties ending in .jar define jarfile names only (no path)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;- properties ending in .lib are fully qualified jars (path and 
&lt;br&gt;filename)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;- properties ending in .dir are directory paths
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;- properties ending in .path are path refid names (classpath fragments)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;- targets beginning with test- are reserved for high level test 
&lt;br&gt;targets,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;and are used in test results parsing
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;- targets typically use the form &amp;lt;action&amp;gt;-&amp;lt;object&amp;gt;-&amp;lt;type&amp;gt; (ie. 
&lt;br&gt;package-bundle-zip)
&lt;br&gt;&lt;br&gt;Some are clarifications of standards already in place, but not well 
&lt;br&gt;publicized. However, with regard to .jar/.lib and .dir/.path there is no 
&lt;br&gt;current standard, and properties are named and used in a fairly random 
&lt;br&gt;mostly interchangeable way. There are many reasons this is becoming an 
&lt;br&gt;issue now, but here are the biggest:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;- bugs requesting the use of minimal classpaths necessitate the 
&lt;br&gt;need to individually
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;define libraries. However, the build has multiple entry points so 
&lt;br&gt;paths to those
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;libraries are relative to the entry point. So the need to 
&lt;br&gt;separate path from jar name.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;- adding individual libraries (rather than eclipselink.core.depend 
&lt;br&gt;or eclipslink.oracle.depend
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; which list them all) also creates a need to separately define 
&lt;br&gt;directories and classpath subsets.
&lt;br&gt;&lt;br&gt;For the most part I've tried to keep the usage most prevalent for each 
&lt;br&gt;postfix
&lt;br&gt;&amp;nbsp;-.lib was mostly used to define full paths to jars, while .jar mostly 
&lt;br&gt;defined jar names. However,
&lt;br&gt;&amp;nbsp; &amp;nbsp;there are also a few non-conformant properties (eclipselink.jar.name 
&lt;br&gt;and .jarfile)
&lt;br&gt;&amp;nbsp;-.dir really hasn't changed at all, but there were a few uses where it 
&lt;br&gt;was a defining a pathref
&lt;br&gt;&amp;nbsp;-.path is pretty much new old pathrefs were either .dir or .classpath
&lt;br&gt;&lt;br&gt;While I needed to implement these changes for the oracle modules for 
&lt;br&gt;critical fixes in 2.0.0, I plan on implementing these changes across the 
&lt;br&gt;board &amp;nbsp;after the branch and discussion has occurred.
&lt;br&gt;&lt;br&gt;Does anyone object to these standards, or have preferences other than 
&lt;br&gt;what I plan to implement? I can see .jarfile being used as the standard 
&lt;br&gt;postfix because the property can't easily be confused with a static 
&lt;br&gt;usage of a jar, but it wasn't routinely used.
&lt;br&gt;&lt;br&gt;Comments? (If I hear nothing from you I will assume it is assent, and 
&lt;br&gt;continue as outlined after the branch is complete.)
&lt;br&gt;&lt;br&gt;-Eric
&lt;br&gt;_______________________________________________
&lt;br&gt;eclipselink-dev mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26529184&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eclipselink-dev@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://dev.eclipse.org/mailman/listinfo/eclipselink-dev&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/EclipseLink---Dev-f26332.html&quot; embed=&quot;fixTarget[26332]&quot; target=&quot;_top&quot; &gt;EclipseLink - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Expanding--%27standards%27-for-build-files.-tp26529184p26529184.html" />
</entry>

</feed>
