<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:content="http://purl.org/rss/1.0/modules/content/"
    xmlns:wfw="http://wellformedweb.org/CommentAPI/"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
>
<!-- MHonArc v2.6.10 -->
	<channel>
		<title>eclipselink-users</title>
		<link>http://dev.eclipse.org/mhonarc/lists/eclipselink-users/maillist.html</link>
		<description>eclipselink-users</description>
		<language>en-us</language>
		<pubDate>Tue, 22 May 2012 13:40:43 GMT</pubDate>
		<lastBuildDate>Tue, 22 May 2012 13:40:43 GMT</lastBuildDate>
		<docs>http://blogs.law.harvard.edu/tech/rss</docs>
		<generator>MHonArc RSS 2.0 RCFile</generator>
		<managingEditor>webmaster@eclipse.org (Webmaster)</managingEditor>
		<webMaster>webmaster@eclipse.org (Webmaster)</webMaster>
		<image>
			<title>eclipselink-users</title>
			<url>http://www.eclipse.org/eclipse.org-common/themes/Phoenix/images/eclipse_home_header.jpg</url>
			<link>http://dev.eclipse.org/mhonarc/lists/eclipselink-users/maillist.html</link>
		</image>
 

	<item>
		<title>Re: [eclipselink-users] Greetings and Questions</title>
		<link>http://dev.eclipse.org/mhonarc/lists/eclipselink-users/msg07142.html</link>
		<description> _______________________________________________ eclipselink-users mailing list eclipselink-users@xxxxxxxxxxx https://dev.eclipse.org/mailman/listinfo/eclipselink-users </description>
		<content:encoded><![CDATA[<pre>Vaidya,
   Hi, in partial answer to your question for the OOME.  I have seen this occur in large batch inserts of over 100k records and in non-ORM code in general when the heap is exhausted.  Launch JVisualVM and check that your heap stays under 70% so the GC does not kick in continously - you will see a performance increase.  The likely reason you see the OOME only when running EclipseLink in the war is because the war runs in a lower classloader than the server lib and may have a different heap size.  Likely the -Xmx setting on the server is higher.  Try adding -server to enable a variable heap (like the JRockit JVM) among other things and set your -Xmx to double your max heap usage.

For the &quot;not null&quot; exception, verify that for the attributes that support it - add nullable=true for those that accept null values.  Otherwise the null error is normal and expected where an attribute is not set - where it should be.

Thank you
/michael

-----Original Message-----
From: eclipselink-users-bounces@xxxxxxxxxxx [<a  href="mailto:eclipselink-users-bounces@xxxxxxxxxxx">mailto:eclipselink-users-bounces@xxxxxxxxxxx</a>] On Behalf Of Tom Ware
Sent: Tuesday, May 22, 2012 9:20 AM
To: eclipselink-users@xxxxxxxxxxx
Subject: Re: [eclipselink-users] Greetings and Questions

Hi Nathan,

   The number of bugs fixed between EclipseLink 1.1.1 and EclipseLink 2.3.2 is 
very high.  Hopefully we can help you get set up to try 2.3.3 to confirm whether 
or not the issue you are seeing is fixed.

   I won't claim to be a JBoss expert, but generally, in application servers, we 
suggest putting EclipseLink in some kind of shared library.  The following wiki 
page provides some details of working with EclipseLink in JBoss and it suggests 
putting the EclipseLink libraries in either server/default/lib or common/lib. 
I'll see if I can find an alternate suggestion.

<a  href="http://wiki.eclipse.org/EclipseLink/Examples/JPA/JBoss_Web_Tutorial">http://wiki.eclipse.org/EclipseLink/Examples/JPA/JBoss_Web_Tutorial</a>

   Is there any additional information you can provide about the out of memory 
error?  I know that in JBoss 5.1 they had a fairly serious bug related to byte 
code weaving - one that we should be able to work around if it is the issue.

-Tom

On 21/05/2012 1:18 PM, vaidya nathan wrote:
&gt; Hi Eclipselink users,
&gt;
&gt; We are in the process of migrating from hibernate to eclipselink in
&gt; our project and we are running into some issues. Our setup is an
&gt; application ear (APP.ear) jboss 5.1.0 GA with 2 wars - A.war and
&gt; B.war. We want to use eclipselink 1.1.1 to start with but we found an
&gt; issue with embeddables
&gt; 1. We have a class D.java which contains an embedded object E.java .
&gt; E.java extends Ebase.java and Ebase.java has some mandatory properties
&gt; prop1 and prop2. All these are declared in the persistence.xml. When
&gt; we are trying to insert D.java objects with the prop1 and prop2
&gt; populated it is not creating insert statements for the two properties
&gt; because of which the insert fails
&gt; Caused by: com.ibm.db2.jcc.b.lm: Assignment of a NULL value to a NOT
&gt; NULL column &quot;TBSPACEID=2, TABLEID=3346, COLNO=5&quot; is not allowed..
&gt; SQLCODE=-407, SQLSTATE=23502, DRIVER=3.50.152
&gt;
&gt; So we switched from eclipselink 1.1.1 to eclipselink 2.3.2 - The first
&gt; issue that we noticed was that if the eclipselink 2.3.2 jar were to be
&gt; in the war we get an out of memory issue . We then tried to package it
&gt; in the ear with the same result (Out of memory). So we added it to the
&gt; server/default/lib and then it deployed and also we were able to
&gt; insert into the D.java table.
&gt;
&gt; So i have two questions for this group
&gt; 1. Was this a bug with embeddables that was fixed subsequently
&gt; 2. Putting it in server/default/lib though not a very good idea is
&gt; helping us proceed with development. Why are we getting the out of
&gt; memory error as soon as we include the eclipselink 2.3.2 jars in the
&gt; ear (either in the lib or the war directory).
&gt; 3. Is this all because we are using jboss 5.1.0 which is loading
&gt; hibernate in its classpath when loading and thats why #2 works .
&gt;
&gt;
&gt; Thx
&gt; Vaidya
&gt; _______________________________________________
&gt; eclipselink-users mailing list
&gt; eclipselink-users@xxxxxxxxxxx
&gt; <a  href="https://dev.eclipse.org/mailman/listinfo/eclipselink-users">https://dev.eclipse.org/mailman/listinfo/eclipselink-users</a>
_______________________________________________
eclipselink-users mailing list
eclipselink-users@xxxxxxxxxxx
<a  href="https://dev.eclipse.org/mailman/listinfo/eclipselink-users">https://dev.eclipse.org/mailman/listinfo/eclipselink-users</a>

</pre>]]></content:encoded>
		<pubDate>Tue, 22 May 2012 13:31:44 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/lists/eclipselink-users/msg07142.html</guid>
		<author>Michael.F.Obrien@xxxxxxx (Michael O'Brien)</author>
	</item>
	<item>
		<title>Re: [eclipselink-users] Greetings and Questions</title>
		<link>http://dev.eclipse.org/mhonarc/lists/eclipselink-users/msg07141.html</link>
		<description> </description>
		<content:encoded><![CDATA[<pre style="margin: 0em;">Hi Nathan,</pre><br>
<tt>  The number of bugs fixed between EclipseLink 1.1.1 and EclipseLink 2.3.2 is 
very high.  Hopefully we can help you get set up to try 2.3.3 to confirm whether 
or not the issue you are seeing is fixed.</tt><br>
<br>
<tt>  I won't claim to be a JBoss expert, but generally, in application servers, we 
suggest putting EclipseLink in some kind of shared library.  The following wiki 
page provides some details of working with EclipseLink in JBoss and it suggests 
putting the EclipseLink libraries in either server/default/lib or common/lib. 
I'll see if I can find an alternate suggestion.</tt><br>
<br>
<pre style="margin: 0em;"><a  href="http://wiki.eclipse.org/EclipseLink/Examples/JPA/JBoss_Web_Tutorial">http://wiki.eclipse.org/EclipseLink/Examples/JPA/JBoss_Web_Tutorial</a></pre><br>
<tt>  Is there any additional information you can provide about the out of memory 
error?  I know that in JBoss 5.1 they had a fairly serious bug related to byte 
code weaving - one that we should be able to work around if it is the issue.</tt><br>
<br>
<pre style="margin: 0em;">-Tom</pre><br>
<tt>On 21/05/2012 1:18 PM, vaidya nathan wrote:
</tt><blockquote style="border-left: #5555EE solid 0.2em; margin: 0em; padding-left: 0.85em"><pre style="margin: 0em;">Hi Eclipselink users,</pre><br>
<pre style="margin: 0em;">We are in the process of migrating from hibernate to eclipselink in
our project and we are running into some issues. Our setup is an
application ear (APP.ear) jboss 5.1.0 GA with 2 wars - A.war and
B.war. We want to use eclipselink 1.1.1 to start with but we found an
issue with embeddables
1. We have a class D.java which contains an embedded object E.java .
E.java extends Ebase.java and Ebase.java has some mandatory properties
prop1 and prop2. All these are declared in the persistence.xml. When
we are trying to insert D.java objects with the prop1 and prop2
populated it is not creating insert statements for the two properties
because of which the insert fails
Caused by: com.ibm.db2.jcc.b.lm: Assignment of a NULL value to a NOT
NULL column &quot;TBSPACEID=2, TABLEID=3346, COLNO=5&quot; is not allowed..
SQLCODE=-407, SQLSTATE=23502, DRIVER=3.50.152</pre><br>
<pre style="margin: 0em;">So we switched from eclipselink 1.1.1 to eclipselink 2.3.2 - The first
issue that we noticed was that if the eclipselink 2.3.2 jar were to be
in the war we get an out of memory issue . We then tried to package it
in the ear with the same result (Out of memory). So we added it to the
server/default/lib and then it deployed and also we were able to
insert into the D.java table.</pre><br>
<pre style="margin: 0em;">So i have two questions for this group
1. Was this a bug with embeddables that was fixed subsequently
2. Putting it in server/default/lib though not a very good idea is
helping us proceed with development. Why are we getting the out of
memory error as soon as we include the eclipselink 2.3.2 jars in the
ear (either in the lib or the war directory).
3. Is this all because we are using jboss 5.1.0 which is loading
hibernate in its classpath when loading and thats why #2 works .</pre><br>
<pre style="margin: 0em;"><br>Thx
Vaidya
_______________________________________________
eclipselink-users mailing list
eclipselink-users@xxxxxxxxxxx
<a  href="https://dev.eclipse.org/mailman/listinfo/eclipselink-users">https://dev.eclipse.org/mailman/listinfo/eclipselink-users</a>
</pre></blockquote><br>
]]></content:encoded>
		<pubDate>Tue, 22 May 2012 13:20:14 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/lists/eclipselink-users/msg07141.html</guid>
		<author>tom.ware@xxxxxxx (Tom Ware)</author>
	</item>
	<item>
		<title>Re: [eclipselink-users] Cannot get the JPQL &amp; SQL String of a	CriteriaQuery</title>
		<link>http://dev.eclipse.org/mhonarc/lists/eclipselink-users/msg07140.html</link>
		<description> </description>
		<content:encoded><![CDATA[<pre style="margin: 0em;">Hi Antonio,</pre><br>
<tt>  EclipseLink will not translate a Criteria query into JPQL for you.  The 
getJPQLString() method will only work for queries originally written in JPQL.</tt><br>
<br>
<tt>  The getSQLString() method relies on the query being &quot;prepared&quot; as indicated 
in the comment for that method.  One you have run the query once, it will be 
prepared.  Alternately, you should be able to call prepareCall, or prepareCalls 
on it to cause it to prepare.</tt><br>
<br>
<pre style="margin: 0em;">-Tom</pre><br>
<tt>On 21/05/2012 9:17 AM, Antonio Goncalves wrote:
</tt><blockquote style="border-left: #5555EE solid 0.2em; margin: 0em; padding-left: 0.85em"><pre style="margin: 0em;">Hi all,</pre><br>
<pre style="margin: 0em;">I need to get the JPQL and/or SQL String of a type safe query... but I can't
make it work. Let's take a simple example : find all the Book entities. Here is
what I can do with a simple dynamic query :</pre><br>
<pre style="margin: 0em;">TypedQuery&lt;Book&gt; findAllBooksQuery = em.createQuery(&quot;SELECT b FROM Book b ORDER
BY b.id &lt;<a  href="http://b.id">http://b.id</a>&gt; DESC&quot;, Book.class);
System.out.println(&quot;JPQL &quot; +
findAllBooksQuery.unwrap(EJBQueryImpl.class).getDatabaseQuery().getJPQLString());
System.out.println(&quot;SQL &quot; +
findAllBooksQuery.unwrap(EJBQueryImpl.class).getDatabaseQuery().getSQLString());</pre><br>
<pre style="margin: 0em;">As you can see, I use the unwrap(EJBQueryImpl.class) method to get the needed
string. And this works fine. But if I do the following, I get a null (for both
JPQL and SQL String) :</pre><br>
<pre style="margin: 0em;">CriteriaBuilder cb = em.getCriteriaBuilder();
CriteriaQuery&lt;Book&gt; q = cb.createQuery(Book.class);
Root&lt;Book&gt; b = q.from(Book.class);
q.select(b).orderBy(cb.desc(b.get(&quot;id&quot;)));
TypedQuery&lt;Book&gt; findAllBooksCriteriaQuery = em.createQuery(q);
System.out.println(&quot;JPQL &quot; +
findAllBooksCriteriaQuery.unwrap(EJBQueryImpl.class).getDatabaseQuery().getJPQLString());
System.out.println(&quot;SQL &quot; +
findAllBooksCriteriaQuery.unwrap(EJBQueryImpl.class).getDatabaseQuery().getSQLString());</pre><br>
<pre style="margin: 0em;">Any idea what this happens ? I am using the right implementation (i.e.
EJBQueryImpl) ?</pre><br>
<pre style="margin: 0em;">Thanks
Antonio</pre><br>
<pre style="margin: 0em;"><br>_______________________________________________
eclipselink-users mailing list
eclipselink-users@xxxxxxxxxxx
<a  href="https://dev.eclipse.org/mailman/listinfo/eclipselink-users">https://dev.eclipse.org/mailman/listinfo/eclipselink-users</a>
</pre></blockquote><br>
]]></content:encoded>
		<pubDate>Tue, 22 May 2012 12:57:55 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/lists/eclipselink-users/msg07140.html</guid>
		<author>tom.ware@xxxxxxx (Tom Ware)</author>
	</item>


	<item>
		<title>[eclipselink-users] Greetings and Questions</title>
		<link>http://dev.eclipse.org/mhonarc/lists/eclipselink-users/msg07139.html</link>
		<description>Hi Eclipselink users, We are in the process of migrating from hibernate to eclipselink in our project and we are running into some issues. Our setup is an application ear (APP.ear) jboss 5.1.0 GA with 2 wars - A.war and B.war. We want to use eclipselink 1....</description>
		<content:encoded><![CDATA[<pre>Hi Eclipselink users,

We are in the process of migrating from hibernate to eclipselink in
our project and we are running into some issues. Our setup is an
application ear (APP.ear) jboss 5.1.0 GA with 2 wars - A.war and
B.war. We want to use eclipselink 1.1.1 to start with but we found an
issue with embeddables
1. We have a class D.java which contains an embedded object E.java .
E.java extends Ebase.java and Ebase.java has some mandatory properties
prop1 and prop2. All these are declared in the persistence.xml. When
we are trying to insert D.java objects with the prop1 and prop2
populated it is not creating insert statements for the two properties
because of which the insert fails
Caused by: com.ibm.db2.jcc.b.lm: Assignment of a NULL value to a NOT
NULL column &quot;TBSPACEID=2, TABLEID=3346, COLNO=5&quot; is not allowed..
SQLCODE=-407, SQLSTATE=23502, DRIVER=3.50.152

So we switched from eclipselink 1.1.1 to eclipselink 2.3.2 - The first
issue that we noticed was that if the eclipselink 2.3.2 jar were to be
in the war we get an out of memory issue . We then tried to package it
in the ear with the same result (Out of memory). So we added it to the
server/default/lib and then it deployed and also we were able to
insert into the D.java table.

So i have two questions for this group
1. Was this a bug with embeddables that was fixed subsequently
2. Putting it in server/default/lib though not a very good idea is
helping us proceed with development. Why are we getting the out of
memory error as soon as we include the eclipselink 2.3.2 jars in the
ear (either in the lib or the war directory).
3. Is this all because we are using jboss 5.1.0 which is loading
hibernate in its classpath when loading and thats why #2 works .


Thx
Vaidya

</pre>]]></content:encoded>
		<pubDate>Mon, 21 May 2012 17:18:43 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/lists/eclipselink-users/msg07139.html</guid>
		<author>vaidyaatdst@xxxxxxx (vaidya nathan)</author>
	</item>
	<item>
		<title>[eclipselink-users] Cannot get the JPQL &amp; SQL String of a	CriteriaQuery</title>
		<link>http://dev.eclipse.org/mhonarc/lists/eclipselink-users/msg07138.html</link>
		<description>Hi all, I need to get the&amp;#xA0;JPQL and/or SQL String of a type safe query... but I can&amp;#39;t make it work. Let&amp;#39;s take a simple example : find all the Book entities. Here is what I can do with a simple dynamic query : TypedQuery&amp;lt;Book&amp;gt; findAllBooksQuery = em.createQ...</description>
		<content:encoded><![CDATA[Hi all,
<div><br></div><div>I need to get the&#xA0;JPQL and/or SQL String of a type safe query... but I can&#39;t make it work. Let&#39;s take a simple example : find all the Book entities. Here is what I can do with a simple dynamic query :</div>
<div><br></div><div><div><font face="&#39;courier new&#39;, monospace">TypedQuery&lt;Book&gt; findAllBooksQuery = em.createQuery(&quot;SELECT b FROM Book b ORDER BY <a href="http://b.id">b.id</a> DESC&quot;, Book.class);</font></div>
<div><font face="&#39;courier new&#39;, monospace">System.out.println(&quot;JPQL &quot; + findAllBooksQuery.unwrap(EJBQueryImpl.class).getDatabaseQuery().getJPQLString());</font></div><div><font face="&#39;courier new&#39;, monospace">System.out.println(&quot;SQL &#xA0;&quot; + findAllBooksQuery.unwrap(EJBQueryImpl.class).getDatabaseQuery().getSQLString());</font></div>
</div><div><br></div><div>As you can see, I use the&#xA0;<font face="&#39;courier new&#39;, monospace">unwrap(EJBQueryImpl.class)</font> method to get the needed string. And this works fine. But if I do the following, I get a null (for both JPQL and SQL String) :</div>
<div><br></div><div><div><font face="&#39;courier new&#39;, monospace">CriteriaBuilder cb = em.getCriteriaBuilder();</font></div><div><font face="&#39;courier new&#39;, monospace">CriteriaQuery&lt;Book&gt; q = cb.createQuery(Book.class);</font></div>
<div><font face="&#39;courier new&#39;, monospace">Root&lt;Book&gt; b = q.from(Book.class);</font></div><div><font face="&#39;courier new&#39;, monospace">q.select(b).orderBy(cb.desc(b.get(&quot;id&quot;)));</font></div><div>
<font face="&#39;courier new&#39;, monospace">TypedQuery&lt;Book&gt; findAllBooksCriteriaQuery = em.createQuery(q);</font></div><div><font face="&#39;courier new&#39;, monospace">System.out.println(&quot;JPQL &quot; + findAllBooksCriteriaQuery.unwrap(EJBQueryImpl.class).getDatabaseQuery().getJPQLString());</font></div>
<div><font face="&#39;courier new&#39;, monospace">System.out.println(&quot;SQL &#xA0;&quot; + findAllBooksCriteriaQuery.unwrap(EJBQueryImpl.class).getDatabaseQuery().getSQLString());</font></div></div><div><br></div><div>Any idea what this happens ? I am using the right implementation (i.e.&#xA0;<span style="font-family:&#39;courier new&#39;,monospace">EJBQueryImpl</span>) ?</div>
<div><br></div><div>Thanks</div><div>Antonio</div>
]]></content:encoded>
		<pubDate>Mon, 21 May 2012 13:17:49 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/lists/eclipselink-users/msg07138.html</guid>
		<author>antonio.mailing@xxxxxxx (Antonio Goncalves)</author>
	</item>


	<item>
		<title>Re: [eclipselink-users] batch loading of single object reporting that query is not a single object</title>
		<link>http://dev.eclipse.org/mhonarc/lists/eclipselink-users/msg07137.html</link>
		<description> ----- http://wiki.eclipse.org/User:James.sutherland.oracle.com James Sutherland http://www.eclipse.org/eclipselink/ EclipseLink , http://www.oracle.com/technology/products/ias/toplink/ TopLink Wiki: http://wiki.eclipse.org/EclipseLink EclipseLink , http:/...</description>
		<content:encoded><![CDATA[<pre>
James,

Thank you - that JPQL worked - and I've got that &quot;Doh!&quot; feeling.

Here is the mapping

Story is

@Entity
@Table(name=&quot;STORY&quot;)
public class Story {

    @Id
    @Column(name = &quot;ID&quot;)
    private int id;

    @Column(name = &quot;NAME&quot;, length = 255)
    private String name;

    @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY)
    @JoinColumn(name = &quot;STORY_ID&quot;, nullable = false)
    @OrderColumn(name = &quot;REVISION&quot;)
    private List&lt;Scenario&gt; scenarios = new ArrayList&lt;Scenario&gt;();

}

Scenario is

@Entity
@Table(name=&quot;SCENARIO&quot;)
public class Scenario {

    @Id
    @Column(name = &quot;ID&quot;)
    private int id;

    @ManyToOne
    @JoinColumn(name = &quot;STORY_ID&quot;, updatable = false, nullable = false)
    private Story story;

    @Column(name = &quot;NAME&quot;, length = 255)
    private String name;

    @ElementCollection(fetch = FetchType.LAZY)
    @CollectionTable(name = &quot;SCENARIO_TAG&quot;, joinColumns = @JoinColumn(name = &quot;SCENARIO_ID&quot;))
    @OrderColumn(name=&quot;SEQUENCE&quot;)
    @Column(name = &quot;TAG&quot;, length = 4000)
    private List&lt;String&gt; tags = new ArrayList&lt;String&gt;();

}

I'll look into the QueryKey on the REVISION column.

Thanks a ton!!!

Brian


----- Original message -----
From: James Sutherland &lt;jamesssss@xxxxxxxxx&gt;
To: eclipselink-users@xxxxxxxxxxx
Subject: Re: [eclipselink-users] batch loading of single object reporting that query is not a single object
Date: Thu, 17 May 2012 06:55:21 -0700 (PDT)


You could try,

select sc from Scenario sc, Story s JOIN s.scenarios sc2 WHERE s.id = :st
oryId and sc = sc2 order by index(sc2) asc

How is scenarios  mapped, does it use a JoinTable?  If it doesn't then you
could probably also just add a QueryKey for the index field, or even map it
in Scenario.


BrianRepko wrote:
&gt; 
&gt; I have 2 Entities
&gt;   * Story, which has a 1-to-many ordered bidirectional
&gt;     relationship with
&gt;   * Scenario, which has an ElementCollection of tags (a List
&gt;     element collection)
&gt; 
&gt; I want to write a query that returns the Scenarios for a given
&gt; Story ID, however, I want the ability to limit the number of
&gt; results AND to batch/pre-load the Scenario tags.
&gt; 
&gt; When I run the following:
&gt; em.getTransaction().begin();
&gt; String jpql = &quot;select sc from Story s JOIN s.scenarios sc WHERE s.id = :st
&gt; oryId order by index(sc) asc&quot;;
&gt; TypedQuery&lt;Scenario&gt; query = em.createQuery(jpql, Scenario.class);
&gt; query.setParameter(&quot;storyId&quot;, 2);
&gt; query.setFirstResult(0);
&gt; query.setMaxResults(15);
&gt; query.setHint(QueryHints.BATCH, &quot;sc.tags&quot;);
&gt; query.setHint(QueryHints.BATCH_TYPE, &quot;IN&quot;);
&gt; query.setHint(QueryHints.LOAD_GROUP_ATTRIBUTE, &quot;tags&quot;);
&gt; List&lt;Scenario&gt; results = query.getResultList();
&gt; em.getTransaction().commit();
&gt; 
&gt; I get the following error:
&gt; Exception in thread &quot;main&quot; java.lang.IllegalArgumentException: Query selec
&gt; t sc from Story s JOIN s.scenarios sc WHERE s.id = :storyId order by index
&gt; (sc) asc, query hint eclipselink.batch is not valid for this type of query
&gt; .
&gt; 
&gt; Which is because Eclipselink thinks that this is not a single
&gt; object query. I've seen this before - it wants Scenario to be the
&gt; first referenced table in the query, but I cannot for the life of
&gt; me figure out how to write this with Scenario first in the query.
&gt; When I do, then I get messages about the index() function not
&gt; being available as that is on the ListJoin.
&gt; 
&gt; Any clues?
&gt; 
&gt; 
&gt; 


-----
<a  href="http://wiki.eclipse.org/User:James.sutherland.oracle.com">http://wiki.eclipse.org/User:James.sutherland.oracle.com</a> James Sutherland 
<a  href="http://www.eclipse.org/eclipselink/">http://www.eclipse.org/eclipselink/</a>
 EclipseLink ,  <a  href="http://www.oracle.com/technology/products/ias/toplink/">http://www.oracle.com/technology/products/ias/toplink/</a>
TopLink 
Wiki:  <a  href="http://wiki.eclipse.org/EclipseLink">http://wiki.eclipse.org/EclipseLink</a> EclipseLink , 
<a  href="http://wiki.oracle.com/page/TopLink">http://wiki.oracle.com/page/TopLink</a> TopLink 
Forums:  <a  href="http://forums.oracle.com/forums/forum.jspa?forumID=48">http://forums.oracle.com/forums/forum.jspa?forumID=48</a> TopLink , 
<a  href="http://www.eclipse.org/forums/index.php?t=thread&amp;frm_id=111&amp;S=1b00bfd151289b297688823a00683aca">http://www.eclipse.org/forums/index.php?t=thread&amp;frm_id=111&amp;S=1b00bfd151289b297688823a00683aca</a>
EclipseLink 
Book:  <a  href="http://en.wikibooks.org/wiki/Java_Persistence">http://en.wikibooks.org/wiki/Java_Persistence</a> Java Persistence 
Blog:  <a  href="http://java-persistence-performance.blogspot.com/">http://java-persistence-performance.blogspot.com/</a> Java Persistence
Performance 
-- 
View this message in context: <a  href="http://old.nabble.com/batch-loading-of-single-object-reporting-that-query-is-not-a-single-object-tp33823753p33864331.html">http://old.nabble.com/batch-loading-of-single-object-reporting-that-query-is-not-a-single-object-tp33823753p33864331.html</a>
Sent from the EclipseLink - Users mailing list archive at Nabble.com.

_______________________________________________
eclipselink-users mailing list
eclipselink-users@xxxxxxxxxxx
<a  href="https://dev.eclipse.org/mailman/listinfo/eclipselink-users">https://dev.eclipse.org/mailman/listinfo/eclipselink-users</a>

</pre>]]></content:encoded>
		<pubDate>Fri, 18 May 2012 15:16:15 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/lists/eclipselink-users/msg07137.html</guid>
		<author>brian.repko@xxxxxxx (Brian Repko)</author>
	</item>


	<item>
		<title>Re: [eclipselink-users] lifecycle and validation annotations don't work in embeded classes</title>
		<link>http://dev.eclipse.org/mhonarc/lists/eclipselink-users/msg07136.html</link>
		<description> ----- http://wiki.eclipse.org/User:James.sutherland.oracle.com James Sutherland http://www.eclipse.org/eclipselink/ EclipseLink , http://www.oracle.com/technology/products/ias/toplink/ TopLink Wiki: http://wiki.eclipse.org/EclipseLink EclipseLink , http:/...</description>
		<content:encoded><![CDATA[<pre>
The JPA spec does not define event for Embeddables.

EclipseLink does support events on Embeddables if you use a
DescriptorEventListener set by a DescriptorCustomizer.  Please log a bug on
EclipseLink to have the event annotations supported by EclipseLink.

For the validation annotations, that is not part of JPA, but another
spec/product.  It should also be possible though I think, but it depends on
your validation provider.


marekpribyl wrote:
&gt; 
&gt; hello there,
&gt; I have troubles to make JPA/validation annotations work in embeded class.
&gt; Assume following simple example:
&gt; 
&gt; @Entity
&gt; class Parent {
&gt;   @NotNull
&gt;   private String name;
&gt; 
&gt;   @Embeded @Valid
&gt;   private Child child;
&gt; 
&gt;   @PrePersist
&gt;   public void parentMethod() {...}
&gt; 
&gt;   ...getters/setters...
&gt; }
&gt; 
&gt; @Embedable
&gt; class Child extends AbstractChild {
&gt;   @NotNull
&gt;   private String name;
&gt; 
&gt;   @PrePersist
&gt;   public void childMethod() {...}
&gt; 
&gt;   ...getters/setters...
&gt; }
&gt; 
&gt; @MappedSuperclass
&gt; abstract class AbstractChild {
&gt;   ...
&gt; 
&gt;   @PrePersist
&gt;   public void abstractChildMethod() {...}
&gt; }
&gt; 
&gt; 
&gt; when I run it as a JUnit test neither JPA lifecycle nor validation
&gt; annotations defined in the embeded class work. on other hand these in the
&gt; parent class work correctly.
&gt; 
&gt; My setup is:
&gt; - Eclipselink 2.3.2
&gt; - apache bval-jsr303 0.4 + geronimo-validation_1.0_spec
&gt; - Spring 3.1.1
&gt; 
&gt; thanks in advance for any help
&gt; marek
&gt; 


-----
<a  href="http://wiki.eclipse.org/User:James.sutherland.oracle.com">http://wiki.eclipse.org/User:James.sutherland.oracle.com</a> James Sutherland 
<a  href="http://www.eclipse.org/eclipselink/">http://www.eclipse.org/eclipselink/</a>
 EclipseLink ,  <a  href="http://www.oracle.com/technology/products/ias/toplink/">http://www.oracle.com/technology/products/ias/toplink/</a>
TopLink 
Wiki:  <a  href="http://wiki.eclipse.org/EclipseLink">http://wiki.eclipse.org/EclipseLink</a> EclipseLink , 
<a  href="http://wiki.oracle.com/page/TopLink">http://wiki.oracle.com/page/TopLink</a> TopLink 
Forums:  <a  href="http://forums.oracle.com/forums/forum.jspa?forumID=48">http://forums.oracle.com/forums/forum.jspa?forumID=48</a> TopLink , 
<a  href="http://www.eclipse.org/forums/index.php?t=thread&amp;frm_id=111&amp;S=1b00bfd151289b297688823a00683aca">http://www.eclipse.org/forums/index.php?t=thread&amp;frm_id=111&amp;S=1b00bfd151289b297688823a00683aca</a>
EclipseLink 
Book:  <a  href="http://en.wikibooks.org/wiki/Java_Persistence">http://en.wikibooks.org/wiki/Java_Persistence</a> Java Persistence 
Blog:  <a  href="http://java-persistence-performance.blogspot.com/">http://java-persistence-performance.blogspot.com/</a> Java Persistence
Performance 
-- 
View this message in context: <a  href="http://old.nabble.com/lifecycle-and-validation-annotations-don%27t-work-in-embeded-classes-tp33862645p33864534.html">http://old.nabble.com/lifecycle-and-validation-annotations-don%27t-work-in-embeded-classes-tp33862645p33864534.html</a>
Sent from the EclipseLink - Users mailing list archive at Nabble.com.


</pre>]]></content:encoded>
		<pubDate>Thu, 17 May 2012 14:14:55 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/lists/eclipselink-users/msg07136.html</guid>
		<author>jamesssss@xxxxxxx (James Sutherland)</author>
	</item>
	<item>
		<title>Re: [eclipselink-users] batch loading of single object reporting that query is not a single object</title>
		<link>http://dev.eclipse.org/mhonarc/lists/eclipselink-users/msg07135.html</link>
		<description> ----- http://wiki.eclipse.org/User:James.sutherland.oracle.com James Sutherland http://www.eclipse.org/eclipselink/ EclipseLink , http://www.oracle.com/technology/products/ias/toplink/ TopLink Wiki: http://wiki.eclipse.org/EclipseLink EclipseLink , http:/...</description>
		<content:encoded><![CDATA[<pre>
You could try,

select sc from Scenario sc, Story s JOIN s.scenarios sc2 WHERE s.id = :st
oryId and sc = sc2 order by index(sc2) asc

How is scenarios  mapped, does it use a JoinTable?  If it doesn't then you
could probably also just add a QueryKey for the index field, or even map it
in Scenario.


BrianRepko wrote:
&gt; 
&gt; I have 2 Entities
&gt;   * Story, which has a 1-to-many ordered bidirectional
&gt;     relationship with
&gt;   * Scenario, which has an ElementCollection of tags (a List
&gt;     element collection)
&gt; 
&gt; I want to write a query that returns the Scenarios for a given
&gt; Story ID, however, I want the ability to limit the number of
&gt; results AND to batch/pre-load the Scenario tags.
&gt; 
&gt; When I run the following:
&gt; em.getTransaction().begin();
&gt; String jpql = &quot;select sc from Story s JOIN s.scenarios sc WHERE s.id = :st
&gt; oryId order by index(sc) asc&quot;;
&gt; TypedQuery&lt;Scenario&gt; query = em.createQuery(jpql, Scenario.class);
&gt; query.setParameter(&quot;storyId&quot;, 2);
&gt; query.setFirstResult(0);
&gt; query.setMaxResults(15);
&gt; query.setHint(QueryHints.BATCH, &quot;sc.tags&quot;);
&gt; query.setHint(QueryHints.BATCH_TYPE, &quot;IN&quot;);
&gt; query.setHint(QueryHints.LOAD_GROUP_ATTRIBUTE, &quot;tags&quot;);
&gt; List&lt;Scenario&gt; results = query.getResultList();
&gt; em.getTransaction().commit();
&gt; 
&gt; I get the following error:
&gt; Exception in thread &quot;main&quot; java.lang.IllegalArgumentException: Query selec
&gt; t sc from Story s JOIN s.scenarios sc WHERE s.id = :storyId order by index
&gt; (sc) asc, query hint eclipselink.batch is not valid for this type of query
&gt; .
&gt; 
&gt; Which is because Eclipselink thinks that this is not a single
&gt; object query. I've seen this before - it wants Scenario to be the
&gt; first referenced table in the query, but I cannot for the life of
&gt; me figure out how to write this with Scenario first in the query.
&gt; When I do, then I get messages about the index() function not
&gt; being available as that is on the ListJoin.
&gt; 
&gt; Any clues?
&gt; 
&gt; 
&gt; 


-----
<a  href="http://wiki.eclipse.org/User:James.sutherland.oracle.com">http://wiki.eclipse.org/User:James.sutherland.oracle.com</a> James Sutherland 
<a  href="http://www.eclipse.org/eclipselink/">http://www.eclipse.org/eclipselink/</a>
 EclipseLink ,  <a  href="http://www.oracle.com/technology/products/ias/toplink/">http://www.oracle.com/technology/products/ias/toplink/</a>
TopLink 
Wiki:  <a  href="http://wiki.eclipse.org/EclipseLink">http://wiki.eclipse.org/EclipseLink</a> EclipseLink , 
<a  href="http://wiki.oracle.com/page/TopLink">http://wiki.oracle.com/page/TopLink</a> TopLink 
Forums:  <a  href="http://forums.oracle.com/forums/forum.jspa?forumID=48">http://forums.oracle.com/forums/forum.jspa?forumID=48</a> TopLink , 
<a  href="http://www.eclipse.org/forums/index.php?t=thread&amp;frm_id=111&amp;S=1b00bfd151289b297688823a00683aca">http://www.eclipse.org/forums/index.php?t=thread&amp;frm_id=111&amp;S=1b00bfd151289b297688823a00683aca</a>
EclipseLink 
Book:  <a  href="http://en.wikibooks.org/wiki/Java_Persistence">http://en.wikibooks.org/wiki/Java_Persistence</a> Java Persistence 
Blog:  <a  href="http://java-persistence-performance.blogspot.com/">http://java-persistence-performance.blogspot.com/</a> Java Persistence
Performance 
-- 
View this message in context: <a  href="http://old.nabble.com/batch-loading-of-single-object-reporting-that-query-is-not-a-single-object-tp33823753p33864331.html">http://old.nabble.com/batch-loading-of-single-object-reporting-that-query-is-not-a-single-object-tp33823753p33864331.html</a>
Sent from the EclipseLink - Users mailing list archive at Nabble.com.


</pre>]]></content:encoded>
		<pubDate>Thu, 17 May 2012 13:55:21 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/lists/eclipselink-users/msg07135.html</guid>
		<author>jamesssss@xxxxxxx (James Sutherland)</author>
	</item>


	<item>
		<title>Re: [eclipselink-users] jms cache coordination</title>
		<link>http://dev.eclipse.org/mhonarc/lists/eclipselink-users/msg07134.html</link>
		<description> -- REINHARD GIRSTENBREI | Senior Principal Technical Support Engineer Phone: +49 89 1430 2318 | Fax: +49 89 1430 2318 | Mobile: +49 177 594 1318 | VOIP: +49 89 1430 2318 Oracle Oracle Customer Services ORACLE Deutschland B.V. &amp;amp; Co. KG | Riesstr. 25 | 8099...</description>
		<content:encoded><![CDATA[<table width="100%"><tr><td bgcolor="#FFFFFF" style="background-color: #FFFFFF; color: #000000; "><font color="#000000">
  
  
    Hi Yannick,<br>
    EclipseLink prints cache coordination events if you have configured
    log level FINEST in your persistence.xml:<br>
    <span id="pt1:sd_r1:0:dv_rDoc:ot71" style="font-size:small;">&lt;property
      name="eclipselink.logging.level" value="FINEST" /&gt;</span> <br>
    <br>
    If you are looking for an example for EclipseLink Cache Coordination
    on Glassfish 3.1.2 and you have access to<br>
    "My Oracle Support" then take a look at:<br>
    Doc Id: 1395570.1 - How To Configure Cache Coordination With JMS on
    Glassfish<br>
    there is also one for RMI:<br>
    Doc Id 1396971.1 - How To Configure Cache Coordination With RMI on
    Glassfish<br>
    <br>
    Please take a look at<br>
    <span id="pt1:sd_r1:0:dv_rDoc:ot71" style="font-size:small;"><a
        title="GLASSFISH-18476 Deployment Fails If EclipseLink Cache
        Coordination Is Configured"
        href="http://java.net/jira/browse/GLASSFISH-18476"
        target="_blank">GLASSFISH-18476 Deployment Fails If EclipseLink
        Cache Coordination Is Configured</a><br>
      which reports a problem with Glassfish 3.1.2<br>
      <br>
      Regards,<br>
      Reinhard<br>
    </span>&nbsp;&nbsp;&nbsp;&nbsp; <br>
    &nbsp;&nbsp;&nbsp; <br>
    &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>
    &nbsp;&nbsp;&nbsp;&nbsp; <br>
    <br>
    On 5/14/2012 6:00 PM, <a class="moz-txt-link-abbreviated" href="mailto:eclipselink-users-request@xxxxxxxxxxx">eclipselink-users-request@xxxxxxxxxxx</a> wrote:
    <blockquote
      cite=""
      type="cite">
      <pre wrap="">Send eclipselink-users mailing list submissions to
	<a class="moz-txt-link-abbreviated" href="mailto:eclipselink-users@xxxxxxxxxxx">eclipselink-users@xxxxxxxxxxx</a>

To subscribe or unsubscribe via the World Wide Web, visit
	<a class="moz-txt-link-freetext" href="https://dev.eclipse.org/mailman/listinfo/eclipselink-users">https://dev.eclipse.org/mailman/listinfo/eclipselink-users</a>
or, via email, send a message with subject or body 'help' to
	<a class="moz-txt-link-abbreviated" href="mailto:eclipselink-users-request@xxxxxxxxxxx">eclipselink-users-request@xxxxxxxxxxx</a>

You can reach the person managing the list at
	<a class="moz-txt-link-abbreviated" href="mailto:eclipselink-users-owner@xxxxxxxxxxx">eclipselink-users-owner@xxxxxxxxxxx</a>

When replying, please edit your Subject line so it is more specific
than "Re: Contents of eclipselink-users digest..."


Today's Topics:

   1. jms cache coordination (Yannick Majoros)
   2. EclipseLink - HermesParser.buildException when	compiling JPQL
      Query (Markus Tiede)
   3. Re: EclipseLink - HermesParser.buildException when compiling
      JPQL Query (Tom Ware)
   4. Re: EclipseLink - HermesParser.buildException when compiling
      JPQL Query (Markus Tiede)
   5. Re: EclipseLink - HermesParser.buildException when compiling
      JPQL Query (Tom Ware)


----------------------------------------------------------------------

Message: 1
Date: Sun, 13 May 2012 21:32:11 +0200
From: Yannick Majoros <a class="moz-txt-link-rfc2396E" href="mailto:yannick.majoros@xxxxxxxxx">&lt;yannick.majoros@xxxxxxxxx&gt;</a>
To: EclipseLink User Discussions <a class="moz-txt-link-rfc2396E" href="mailto:eclipselink-users@xxxxxxxxxxx">&lt;eclipselink-users@xxxxxxxxxxx&gt;</a>
Subject: [eclipselink-users] jms cache coordination
Message-ID: <a class="moz-txt-link-rfc2396E" href="mailto:4FB00C3B.2000806@xxxxxxxxx">&lt;4FB00C3B.2000806@xxxxxxxxx&gt;</a>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Hello,

Is there a way to monitor jms cache coordination? I couldn't find 
documentation about setting log levels to see jms messages being sent / 
received, either from Eclipselink or from Glassfish 3.1.2 (EL is used 
from the ejb container).

Thanks for your help,

Yannick Majoros


------------------------------

Message: 2
Date: Mon, 14 May 2012 16:20:03 +0200
From: Markus Tiede <a class="moz-txt-link-rfc2396E" href="mailto:Markus.Tiede@xxxxxxxxx">&lt;Markus.Tiede@xxxxxxxxx&gt;</a>
To: EclipseLink User Discussions <a class="moz-txt-link-rfc2396E" href="mailto:eclipselink-users@xxxxxxxxxxx">&lt;eclipselink-users@xxxxxxxxxxx&gt;</a>
Subject: [eclipselink-users] EclipseLink - HermesParser.buildException
	when	compiling JPQL Query
Message-ID: <a class="moz-txt-link-rfc2396E" href="mailto:4FB11493.8010807@xxxxxxxxx">&lt;4FB11493.8010807@xxxxxxxxx&gt;</a>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Hello,

we, the Jubula team, are currently experiencing problems working with 
EclipseLink 2.4.0 in our standalone version of "Eclipse for Testers" 
(<a class="moz-txt-link-freetext" href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=379221">https://bugs.eclipse.org/bugs/show_bug.cgi?id=379221</a>).

We get a JPQL exception thrown by the HermesParser when trying to 
compile one of our JPQL queries (in 2.3.2 this works without any problems):

The basic mapping 'compName.hbmGuid' cannot be used in conjunction with 
the = operator. (Exception Description: Problem compiling [select assoc 
from ObjectMappingAssoziationPO as assoc, CompIdentifierPO as compId, 
ComponentNamePO as compName join assoc.logicalNames as logicalName where 
logicalName = compName.hbmGuid and logicalName = :compNameGuid and 
assoc.technicalName = compId and compName.hbmParentProjectId = 
:parentProjectId]).

Does anyone else face such problems and know how to resolve them? Is 
this a newly introduced feature / bug fix which requires adjustments of 
JPQL queries in general?

With best regards,
MarkusT
</pre>
    </blockquote>
    <br>
    <div class="moz-signature">-- <br>
      <a href="http://www.oracle.com" target="_blank"><img
          src="" alt="Oracle"
          border="0" height="26" width="114"></a><br>
      <font color="#666666" face="Verdana, Arial, Helvetica, sans-serif"
        size="2">REINHARD GIRSTENBREI | Senior Principal Technical
        Support Engineer<br>
        Phone: <a href="tel:+49%2089%201430%202318"
          moz-do-not-send="true">+49 89 1430 2318</a> | Fax: <a
          href="fax:+49%2089%201430%202318" moz-do-not-send="true">+49
          89 1430 2318</a> | Mobile: <a
          href="tel:+49%20177%20594%201318" moz-do-not-send="true">+49
          177 594 1318</a> | VOIP: <a href="tel:+49%2089%201430%202318"
          moz-do-not-send="true">+49 89 1430 2318</a>
        <br>
        <font color="#ff0000">Oracle</font> Oracle Customer Services<br>
        <br>
        ORACLE Deutschland B.V. &amp; Co. KG | Riesstr. 25 | 80992
        Munich</font><br>
      <br>
      <font color="#666666" face="Verdana, Arial, Helvetica, sans-serif"
        size="1">ORACLE Deutschland B.V. &amp; Co. KG<br>
        Hauptverwaltung: Riesstr. 25, D-80992 M&uuml;nchen<br>
        Registergericht: Amtsgericht M&uuml;nchen, HRA 95603<br>
        Gesch&auml;ftsf&uuml;hrer: J&uuml;rgen Kunz<br>
        <br>
        Komplement&auml;rin: ORACLE Deutschland Verwaltung B.V.<br>
        Hertogswetering 163/167, 3543 AS Utrecht, Niederlande<br>
        Handelsregister der Handelskammer Midden-Niederlande, Nr.
        30143697<br>
        Gesch&auml;ftsf&uuml;hrer: Alexander van der Ven, Astrid Kepper, Val Maher<br>
      </font>
      <br>
      <a href="http://www.oracle.com/commitment" target="_blank"><img
          src="" alt="Green
          Oracle" align="absmiddle" border="0" height="28" width="44"></a>
      <font color="#4B7D42" face="Verdana, Arial, Helvetica, sans-serif"
        size="1">Oracle is committed to developing practices and
        products that help protect the environment</font>
      <!---->
    </div>
  

</font></td></tr></table><p><a href="giffENIfi3W7U.gif" ><img src="giffENIfi3W7U.gif" alt="GIF image"></a></p>
<p><a href="gifGo5hLCHxb6.gif" ><img src="gifGo5hLCHxb6.gif" alt="GIF image"></a></p>
]]></content:encoded>
		<pubDate>Mon, 14 May 2012 20:25:45 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/lists/eclipselink-users/msg07134.html</guid>
		<author>reinhard.girstenbrei@xxxxxxx (REINHARD GIRSTENBREI)</author>
	</item>
	<item>
		<title>Re: [eclipselink-users] EclipseLink - HermesParser.buildException when compiling JPQL Query</title>
		<link>http://dev.eclipse.org/mhonarc/lists/eclipselink-users/msg07133.html</link>
		<description>_______________________________________________ eclipselink-users mailing list eclipselink-users@xxxxxxxxxxx https://dev.eclipse.org/mailman/listinfo/eclipselink-users _______________________________________________ eclipselink-users mailing list eclipseli...</description>
		<content:encoded><![CDATA[<pre style="margin: 0em;">Please file a ticket.</pre><br>
<tt>Our goal for Juno is to ship the new parser with as few regressions from the old 
parser as possible.  We have not evaluated this issue yet, so I cannot make any 
promises, but fixing these bugs is a high priority for us.</tt><br>
<br>
<tt>On 14/05/2012 10:50 AM, Markus Tiede wrote:
</tt><blockquote style="border-left: #5555EE solid 0.2em; margin: 0em; padding-left: 0.85em"><pre style="margin: 0em;">Thanks for the quick response - shall I file a separate ticket for this or will
you do that?</pre><br>
<pre style="margin: 0em;">Do you recommend using the old parser or are you planning to fix this for Juno?</pre><br>
<pre style="margin: 0em;">Best regards,
MarkusT</pre><br>
<tt>On 14.05.2012 16:39, Tom Ware wrote:
</tt><blockquote style="border-left: #5555EE solid 0.2em; margin: 0em; padding-left: 0.85em"><pre style="margin: 0em;">We have just changed our JPA parser. We will look into this issue soon.</pre><br>
<pre style="margin: 0em;">In you need to, you can enable the old parser with this persistence unit
property:</pre><br>
<pre style="margin: 0em;">eclipselink.jpql.parser=org.eclipse.persistence.queries.ANTLRQueryBuilder</pre><br>
<tt>On 14/05/2012 10:20 AM, Markus Tiede wrote:
</tt><blockquote style="border-left: #5555EE solid 0.2em; margin: 0em; padding-left: 0.85em"><pre style="margin: 0em;">Hello,</pre><br>
<pre style="margin: 0em;">we, the Jubula team, are currently experiencing problems working with
EclipseLink 2.4.0 in our standalone version of &quot;Eclipse for Testers&quot;
(<a  href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=379221">https://bugs.eclipse.org/bugs/show_bug.cgi?id=379221</a>).</pre><br>
<pre style="margin: 0em;">We get a JPQL exception thrown by the HermesParser when trying to compile one of
our JPQL queries (in 2.3.2 this works without any problems):</pre><br>
<pre style="margin: 0em;">The basic mapping 'compName.hbmGuid' cannot be used in conjunction with the =
operator. (Exception Description: Problem compiling [select assoc from
ObjectMappingAssoziationPO as assoc, CompIdentifierPO as compId, ComponentNamePO
as compName join assoc.logicalNames as logicalName where logicalName =
compName.hbmGuid and logicalName = :compNameGuid and assoc.technicalName =
compId and compName.hbmParentProjectId = :parentProjectId]).</pre><br>
<pre style="margin: 0em;">Does anyone else face such problems and know how to resolve them? Is this a
newly introduced feature / bug fix which requires adjustments of JPQL queries in
general?</pre><br>
<pre style="margin: 0em;">With best regards,
MarkusT
</pre></blockquote><pre style="margin: 0em;">_______________________________________________
eclipselink-users mailing list
eclipselink-users@xxxxxxxxxxx
<a  href="https://dev.eclipse.org/mailman/listinfo/eclipselink-users">https://dev.eclipse.org/mailman/listinfo/eclipselink-users</a>
</pre></blockquote><pre style="margin: 0em;"><br></pre><br>
<pre style="margin: 0em;">_______________________________________________
eclipselink-users mailing list
eclipselink-users@xxxxxxxxxxx
<a  href="https://dev.eclipse.org/mailman/listinfo/eclipselink-users">https://dev.eclipse.org/mailman/listinfo/eclipselink-users</a>
</pre></blockquote><br>
]]></content:encoded>
		<pubDate>Mon, 14 May 2012 14:55:51 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/lists/eclipselink-users/msg07133.html</guid>
		<author>tom.ware@xxxxxxx (Tom Ware)</author>
	</item>

 
	</channel>
	</rss>
<!-- MHonArc v2.6.10 -->

